I am using Aspose.Cells to create a bubble chart and save it to an image.
However, chart is getting generated in excel correctly but while generating image, it is getting cut from top and right side.
Please see the attached image and excel.
Also below is the code snippet (not complete code) where i am setting chart properties and saving to image file.
int chartIndex = sheet.getCharts().add(ChartType.BUBBLE, 2, 2, 30, 20);
Chart chart = sheet.getCharts().get(chartIndex);
chart.getChartObject().setHeight(graph.getHeight());
chart.getChartObject().setWidth(graph.getWidth());
chart.getPlotArea().getArea().setForegroundColor(Color.getWhite());
chart.getPlotArea().getBorder().setVisible(true);
chart.getChartArea().getBorder().setVisible(false);
chart.getTitle().getFont().setBold(true);
chart.getTitle().getFont().setSize(10);
chart.setShowLegend(false);
ImageOrPrintOptions imgOpts = new ImageOrPrintOptions();
imgOpts.setImageFormat(ImageFormat.getGif());
FileOutputStream fout = new FileOutputStream(thechart);
chart.toImage(fout, imgOpts);