to set category names vertically

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
maya

to set category names vertically

Post by maya » Thu Jul 26, 2001 7:57 am

hi,
i have a problem to set horizontal category names vertically.
i am trying to draw broken line charts that shows amount of packet increase in every 20 minutes. so there are not enough space to show each time horizontal way.
i just want to show category like the chart on page 8 in pdf file called "Inside JFreeChart" which i downloaded from this site.
can anybody help me?
let me know what i should do...

Thank you in advance.

David Gilbert

RE: to set category names vertically

Post by David Gilbert » Thu Jul 26, 2001 8:31 pm

You need to use the setVerticalCategoryLabels(...) method in the HorizontalCategoryAxis class. Or setVerticalTickLabels(...) in the HorizontalDateAxis class. First, though, you'll have to typecast the reference returned by the Plot.getAxis(...) method.

DG.

Locked