Search found 4 matches
- Wed Apr 18, 2007 3:01 pm
- Forum: JFreeChart
- Topic: Problems duplicate x-axis labels with TimeSeries Month.class
- Replies: 6
- Views: 11291
Hello David, in the meantime I found a solution for the problem: // set the tick size to one month, with formatting... DateFormat f1 = new SimpleDateFormat("MMMM"); TickUnits monthUnits = new TickUnits(); //months monthUnits.add(new DateTickUnit(DateTickUnit.MONTH, 1, f1 )); monthUnits.add(new DateT...
- Wed Apr 18, 2007 11:30 am
- Forum: JFreeChart
- Topic: Problems duplicate x-axis labels with TimeSeries Month.class
- Replies: 6
- Views: 11291
Hello David, thanks for the answer. I looked at the source but unfortunately I did not found out how to override the standard tick sizes. Possibly the method: public static TickUnitSource createStandardDateTickUnits(TimeZone zone) I would appreciate it very much, if you could give a short code examp...
- Mon Apr 16, 2007 3:17 pm
- Forum: JFreeChart
- Topic: Problems duplicate x-axis labels with TimeSeries Month.class
- Replies: 6
- Views: 11291
More information
Hello, additionally I found out the following behavior: When I add two date values (April, May) the x-axis labels are displayed correctly without double names for the labels. Also when I resize the chartPanel width from 500 to 300 chartPanel.setPreferredSize(new java.awt.Dimension(300, 270)); the la...
- Fri Apr 13, 2007 2:51 pm
- Forum: JFreeChart
- Topic: Problems duplicate x-axis labels with TimeSeries Month.class
- Replies: 6
- Views: 11291
Problems duplicate x-axis labels with TimeSeries Month.class
Hello, when I create a chart with TimeSeries and Moth.class the month label names from the x-axis will be repeated. If I have January, February, March with data and the x-axis renderes the lables: January January February March March Tested with JFreeChart V1.0.5 Is there a way to prevent the double...