Chart c = worksheet.getCharts().get(0);
c.calculate();
//Check whether empty cells are not plotted.
//You may use/evaluate the Boolean variable (if true) to print empty string instead of zero (you are currently getting) by yourself in your code later on.
boolean check = false;
if(c.getPlotEmptyCellsType()== PlotEmptyCellsType.NOT_PLOTTED)
{
check = true;
}
System.out.println(check);
SeriesCollection nSeries = c.getNSeries();
.........
chart.calculate();
for (int k = 0; k < chart.getNSeries().getCount(); k++)
{
Series s = chart.getNSeries().get(k);
System.out.println(s.getDisplayName());
for(int m =0;m<s.getPoints().getCount();m++){
System.out.println(s.getPoints().get(m).getYValueType());
System.out.println(s.getPoints().get(m).getYValue());
}
}
The issues you have found earlier (filed as CELLSJAVA-42577) have been fixed in this update. This message was posted using BugNotificationTool from <a href=“https://#{request.env[“HTTPS_HOST”]}”>Downloads module by Amjad_Sahi
The issues you have found earlier (filed as CELLSJAVA-42577) have been fixed in Aspose.Cells for Java 18.4. Please also see the document for your reference: