Hello,
I am using Aspose.Cells v8.7.0.4 to generate PDF of chart - "Chart 1" in the attached excel file.
In the attached excel file, the number of legend members are 8 but only 7 legend members are visible. But the PDF output shows all the 8 legend members.
The PDF output should exactly match the source excel file. The PDF should display only those legend members which are visible in the actual chart.
Following code is used to generate the output:
void chartToPDF() throws Exception {
Workbook workbook = new Workbook("Problem1.xlsx");
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = "Sheet1";
Chart chart = ws.get(worksheetName).getCharts().get("Chart 1");
chart.toPdf("D:\\response_8.7.0.4.pdf");
}
I have attached Excel generated Pdf and Aspose generated Pdf along with a screenshot of the issue.
Can you please analyse this issue.
Thanks,
Neha