Hi,
While generating same SVG image, from a given excel chart we are seeing some disturbance in the generated SVG vs the source Excel Chart.
Is there a setting or a way to generate the excel chart as it is in source excel sheet chart, without any changes ?
currently i am using Aspose.Cells library to read the excel file and get chart object from it.
After generating the chart, I see lot of difference in the generated SVG vs Source Excel Chart., i have attached the excel sheet with chart as well as the screenshots for easy understanding.
- Axis values are changing,
- if we apply chart styles whole chart is generating differently,
- bubble chart’s bubble size is changing,
- shapes inserted in the chart object is moving, etc.
I am using below code to generated the svg from excel chart
LoadOptions loadOptions = new LoadOptions(LoadFormat.Xlsx);
Workbook workbook = new Workbook(@“C:\abc.xlsx”, loadOptions);
// Set image or print options
Aspose.Cells.Rendering.ImageOrPrintOptions opts = new Aspose.Cells.Rendering.ImageOrPrintOptions();
opts.SaveFormat = SaveFormat.SVG;
opts.IsOptimized = false;
opts.OutputBlankPageWhenNothingToPrint = false;
//save to file
workbook.Worksheets[0].Charts[0].ToImage(@"C:\XYZ.svg", opts);
attachments:-
image.png (80.5 KB)
sampleexcel.zip (76.5 KB)
image.png (80.5 KB)