In My Project There are two Requirement
How to fix the X axis As Integer ?
How can i show the any perticular axis value at the data point in A XYLine Chart ?
How to fix the X axis As Integer ?
Re: How to fix the X axis As Integer ?
Your Integer problem can be solved like this:
NumberAxis axis = new NumberAxis();
axis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
To label the ticks in a special way you can use the classes TickUnits, DateTickUnit and NumberTickUnit.
See the Javadoc for more information!
NumberAxis axis = new NumberAxis();
axis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
To label the ticks in a special way you can use the classes TickUnits, DateTickUnit and NumberTickUnit.
See the Javadoc for more information!
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: How to fix the X axis As Integer ?
To display these on the axis you'd have to subclass the axis and override the refreshTicks() method.abinashparija wrote:How can i show the any perticular axis value at the data point in A XYLine Chart ?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

