XYLineAndShapeRenderer help

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ahury
Posts: 14
Joined: Tue Apr 24, 2007 3:20 pm

XYLineAndShapeRenderer help

Post by ahury » Mon Jun 25, 2007 9:18 am

I use an XYLineAndShapeRenderer and I want to create an Y axis, which has his ticks increased all 500 and number label all 1000. Is it possible? Where i can find some sample ?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jun 25, 2007 4:07 pm

I don't completely understand your description. Did you try the setTickUnit() method in the NumberAxis class?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

ahury
Posts: 14
Joined: Tue Apr 24, 2007 3:20 pm

Post by ahury » Tue Jun 26, 2007 9:55 am

Yes I use
I do this
NumberAxis domainAxis = (NumberAxis) plot.getDomainAxis();
domainAxis.setTickUnit(new NumberTickUnit(domainTickUnit));

where domainTickUnit= 1000
but I want ticks every 500 and tick with label every 1000

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Jun 27, 2007 10:02 am

OK, I understand now. Currently, JFreeChart doesn't support major/minor ticks, which is what you want I think. Every tick mark is labelled.

Hopefully, major/minor tick marks will be implemented in a future release.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked