Search found 6 matches

by travis_cooper
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...
by travis_cooper
Fri Jul 18, 2008 3:20 pm
Forum: JFreeChart
Topic: Problem in displaying the category label...?
Replies: 4
Views: 4266

When you're setting the category label position try using CategoryLabelPositions.UP_90 instead of CategoryLabelPositions.createUpRotationLabelPositions(Math.PI / 6.0)
by travis_cooper
Thu Jul 17, 2008 10:35 pm
Forum: JFreeChart
Topic: Time Series Chart - values not lining up with tick marks
Replies: 3
Views: 3338

Okay, thanks. I guess I will keep going down the path I started, it looks like it is the best way to handle this.
by travis_cooper
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...
by travis_cooper
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. ...
by travis_cooper
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.

Code: Select all

JFreeChart chart = .....;
CategoryAxis axis = chart.getCategoryPlot().getDomainAxis();
axis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
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.