How to display categoryAxisLabel vertically

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nilesh
Posts: 20
Joined: Wed May 21, 2003 10:56 am
Contact:

How to display categoryAxisLabel vertically

Post by nilesh » Mon Jun 09, 2003 7:12 am

I need to display x-axis labels vertically aligned.
Is it possible ?

I have tried this but doesn't work.
Here is my code

//////////////////////////
JFreeChart chart = ChartFactory.createVerticalBarChart(
chartTitle,
domainAxisLabel,
primaryAxisLabel,
dataset1,
true,
true,
false
);


CategoryPlot plot = chart.getCategoryPlot();
plot.setVerticalValueLabels(true);

I have dual axes
///////////////////
Tnx

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jun 09, 2003 9:09 am

You can use the setVerticalCategoryLabels(...) method in the HorizontalCategoryAxis class.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

nilesh
Posts: 20
Joined: Wed May 21, 2003 10:56 am
Contact:

Thanks

Post by nilesh » Tue Jun 10, 2003 6:10 am

Thank you David , it is done !

Locked