Hi,
I'm new to JFreeChart and I'm not sure whether my concern have been raised before or not but would appreciate if anyone can help me.
I'm using createLineChart and I would like to display the category names in a diagonal layout instead of the horizontal layout. The category is quite long and become unreadable in a horizontal and would like to be displayed diagonally.
Thanks in advance.
Editing of Category Names
Re: Editing of Category Names
Diagonal isn't possible yet, only horizontal or vertical:
CategoryPlot plot = myChart.getCategoryPlot();
HorizontalCategoryAxis axis = (HorizontalCategoryAxis) plot.getDomainAxis();
axis.setVerticalTickLabels(true);
Regards,
Dave Gilbert
CategoryPlot plot = myChart.getCategoryPlot();
HorizontalCategoryAxis axis = (HorizontalCategoryAxis) plot.getDomainAxis();
axis.setVerticalTickLabels(true);
Regards,
Dave Gilbert