I am developing a javaEE application using jfreecharts. I successfully displayed my data using a stackedBarChart but the column keys (Y-axis labels) are not fully displayed because they are too large. how can I display them vertically? thanks for your suggestions
Catalina Island
You can use setCategoryLabelPositions()
like they show here.
CategoryPlot plot = (CategoryPlot) chart.getPlot();
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90));
来源:https://stackoverflow.com/questions/16317373/display-column-keys-of-stacked-bar-chart-vertically-in-jfreecharts