Customized axis value in JFreeChart

A

Avatar Viper

I am using JFreeChart 0.921

I have a set of data, for example
x - 0.0, 0.4, 1.3, 1.9, 2.3, 3.3 and
y - 0.0, 1.0, 2.0, 3.0, 4.0, 5.0.
I can make XYPlot, and x-axis scale shows 0 to 4. What I want is to
display the scales using the numbers of x, as
 
O

Oscar kind

Avatar Viper said:
I am using JFreeChart 0.921

What I want is to display the scales using the numbers of x, as

No: Ticks along the axis are always placed evenly, while your data is not.
 
A

Avatar Viper

Oscar kind said:
No: Ticks along the axis are always placed evenly, while your data is not.

Is there a way to override some of the classes to customized the axis???
 
O

Oscar kind

Is there a way to override some of the classes to customized the axis???

Probably. jFreeChart uses the LGPL licence, and the sources are included.
At least is says so on the main page of the website of jFreeChart...

So why don'ty you give it a try?
 
A

Avatar Viper

Oscar kind said:
Probably. jFreeChart uses the LGPL licence, and the sources are included.
At least is says so on the main page of the website of jFreeChart...

So why don'ty you give it a try?

Got any examples to show me. Thx.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top