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
How to display categoryAxisLabel vertically
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can use the setVerticalCategoryLabels(...) method in the HorizontalCategoryAxis class.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Thanks
Thank you David , it is done !