I am trying to read data from the charts.
Below is the part of my code that I implemented.
SeriesCollection series = chart.getNSeries();
String categoryData = series.getCategoryData();
System.out.println(categoryData);
Iterator it = series.iterator();
while(it.hasNext()){
Series s = it.next();
String values = s.getValues();
System.out.println(values );
}
output -
=‘Dist1 - L&T Capital’!$B$5:$B$7
=‘Dist1 - L&T Capital’!$C$5:$C$7
I tried above code to read values and category data but what I am getting is the source sheet range instead of the actual values that are displayed on the charts.
How can I get the actual values from charts? Is there any way?