I am working with JFreeChart in java in order to show some charts. I want to make the value in the X axis vertical to save the space between two dots in the chart ( line chart ).
The picture below shows what i mean:
Thanks
Try it:
...
XYDataset dataset = createDataset();
JFreeChart chart = createChart(dataset);
CategoryAxis categoryAxis = chart.getCategoryPlot().getDomainAxis();
categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
// categoryAxis.setVerticalTickLabels(true);
...