In the chart, for category axis i m using the dates. When the data is small, the date tick labels are displayed correctly. But, when the data is large..the date tick labels are overlapping. Is there any way to skip some tick labels to display the dates properly in the xaxis.
My present code looks like this.
Code: Select all
CategoryAxis categoryAxis = new CategoryAxis(getChartItems().getXAxisLabel());
categoryAxis.setAxisLineVisible(true);
categoryAxis.setTickMarksVisible(true);
CategoryLabelPosition position = new CategoryLabelPosition(
RectangleAnchor.CENTER,TextBlockAnchor.CENTER, TextAnchor.CENTER, -Math.PI / 2.0
);
categoryAxis.setBottomCategoryLabelPosition(position);
categoryAxis.setLabelFont(labelFont);
categoryAxis.setLabelInsets(new Insets(15,5,5,5));
categoryAxis.setTickLabelFont(tickLabelFont);
plot.setDomainAxis(categoryAxis);
Regards,
guest