How to get the maximum axis value from a created chart?
Here is how it is created:
final JFreeChart chart = ChartFactory.createStackedBarChart("", "", symbol, dataSet,PlotOrientation.VERTICAL, false, false, false);
I probably have to get the dataset from the chart and then get the maximum axis value from it. The dataset is DefaultCategoryDataset.
Just iterate through the
CategoryDatasetUsing the example dataset, produces the following output: