We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Chart issue

Hi.
I have founded, that in new version (i have used 8.5.1, but issue appears earlier)
If i will try to set first series of copied chart to second Y axis, then
i will catch exception.
@Test
public void chartSecondaryAxis() throws Exception {
Workbook wb = new Workbook("D://chart.xlsx");

Worksheet worksheet = wb.getWorksheets().get(0);

ChartShape chartShape = worksheet.getCharts().get("Chart1").getChartObject();

Shape copyShape = worksheet.getShapes().addCopy(chartShape, 19, 0, 2, 0);

Chart copyChart = worksheet.getCharts().get(copyShape.getName());

copyChart.getNSeries().get(0).setPlotOnSecondAxis(true);

wb.save("D://out.xlsx");
}

Hi,

Thanks for your posting and using Aspose.Cells.

We were able to observe the exception after running your sample code with your source excel file using the latest version: Aspose.Cells
for Java v8.5.1.6
. The code throws exception saying if there is only a series on the primary axis, you could not plot the series to the second axis.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSJAVA-41442.

Hi,

Thanks for using Aspose.Cells.

This is to inform you that we have fixed your issue CELLSJAVA-41442 now. We will soon provide the fix after performing QA and including other enhancements and fixes.

Hi,

Thanks for using Aspose.Cells for Java.

Please download and try this fix: Aspose.Cells for Java v8.5.2.3 and let us know your feedback.

The issues you have found earlier (filed as CELLSJAVA-41442) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.