Search found 6 matches
- Fri Jul 18, 2008 3:26 pm
- Forum: JFreeChart
- Topic: DateAxis and DateLabel rotate
- Replies: 4
- Views: 8474
I recently had to do this. There is a way to set the angle, but the DateAxis class never looks at that. What I did was to extend the DateAxis class and overrode the refreshTicksHorizontal method, I only have dates on the horizontal axis. Then I call the super method and loop through the list changin...
- Fri Jul 18, 2008 3:20 pm
- Forum: JFreeChart
- Topic: Problem in displaying the category label...?
- Replies: 4
- Views: 4266
- Thu Jul 17, 2008 10:35 pm
- Forum: JFreeChart
- Topic: Time Series Chart - values not lining up with tick marks
- Replies: 3
- Views: 3338
- Thu Jul 17, 2008 9:01 pm
- Forum: JFreeChart
- Topic: Time Series Chart - values not lining up with tick marks
- Replies: 3
- Views: 3338
Okay, I ended up extending the DateAxis class and overrode the calculateLowestVisibleTickValue, nextStandardDate, and previousStandardDate methods. I also extended the DateTickUnit class and overrode pretty much every method. I still haven't done all the testing I need to on it, but it seems to be w...
- Thu Jul 17, 2008 4:42 pm
- Forum: JFreeChart
- Topic: Time Series Chart - values not lining up with tick marks
- Replies: 3
- Views: 3338
Time Series Chart - values not lining up with tick marks
I tried searching through the forums for an answer to this question, but I haven't been able to find it. I am creating a time series chart and the points on the chart don't line up with the tick marks on my x-axis. I tried to post a screen shot, but I guess I don't have enough posts to do that yet. ...
- Thu Jul 17, 2008 3:59 pm
- Forum: JFreeChart
- Topic: How to get the X-Axis labels vertical instead of horizontal
- Replies: 4
- Views: 17292
This is how I do it.
Normally I use UP_45, but the 90 should get you vertical. Also you can use either up or down to change the direction of the text.
Code: Select all
JFreeChart chart = .....;
CategoryAxis axis = chart.getCategoryPlot().getDomainAxis();
axis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);