A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
Jessica James
- Posts: 10
- Joined: Thu Oct 11, 2007 6:45 am
Post
by Jessica James » Mon Oct 15, 2007 12:53 pm
Guys,
Can you people please tell me how to chang the number of tick marks or grid lines in the number axis display?
Is there any way to customize the tick marks or grid lines display?
-
dtopolsek
- Posts: 8
- Joined: Wed Oct 10, 2007 10:46 am
-
Contact:
Post
by dtopolsek » Mon Oct 15, 2007 5:10 pm
.setTickSize(double d) ?
-
Jessica James
- Posts: 10
- Joined: Thu Oct 11, 2007 6:45 am
Post
by Jessica James » Tue Oct 16, 2007 5:57 am
Got the solution to dynamically control the number of tick marks..
Please find the below code for that..
double upperValue = rangeAxis.getUpperBound();
rangeAxis.setTickUnit(new NumberTickUnit(upperValue/5,NumberFormat.getIntegerInstance()));