From 0ab6f3bbe542a92987d0cffaf6d54b0d93420680 Mon Sep 17 00:00:00 2001 From: KarthikaSF4773 Date: Mon, 8 Dec 2025 16:58:28 +0530 Subject: [PATCH 1/4] 997816-UpdateSupportedChartsDev --- .../NET/Chart-to-Image-Conversion.md | 68 ++++++++++++------- .../Conversions/Chart-to-Image/overview.md | 20 ++++-- 2 files changed, 61 insertions(+), 27 deletions(-) diff --git a/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md b/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md index 3a7e086e3..6d3da03cc 100644 --- a/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md +++ b/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md @@ -19,30 +19,36 @@ The following code snippet shows how to convert an Excel chart to an image using {% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/Chart%20to%20Image/Chart%20to%20Image/.NET/Chart%20to%20Image/Chart%20to%20Image/Program.cs,180" %} using (ExcelEngine excelEngine = new ExcelEngine()) { - IApplication application = excelEngine.Excel; - application.DefaultVersion = ExcelVersion.Xlsx; + //Initialize application + IApplication application = excelEngine.Excel; - // Initialize XlsIORenderer - application.XlsIORenderer = new XlsIORenderer(); + //Set the default version as Xlsx + application.DefaultVersion = ExcelVersion.Xlsx; - //Set converter chart image format to PNG - application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png; + //Initialize XlsIORenderer + application.XlsIORenderer = new XlsIORenderer(); - FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); - IWorkbook workbook = application.Workbooks.Open(inputStream); - IWorksheet worksheet = workbook.Worksheets[0]; + //Set converter chart image format to PNG or JPEG + application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png; - IChart chart = worksheet.Charts[0]; + //Set the chart image quality to best + application.XlsIORenderer.ChartRenderingOptions.ScalingMode = ScalingMode.Best; - #region Save - //Saving the workbook - FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write); - chart.SaveAsImage(outputStream); - #endregion + //Open existing workbook with chart + IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx")); + IWorksheet worksheet = workbook.Worksheets[0]; + + //Access the chart from the worksheet + IChart chart = worksheet.Charts[0]; - //Dispose streams - outputStream.Dispose(); - inputStream.Dispose(); + #region Save + //Exporting the chart as image + FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write); + chart.SaveAsImage(outputStream); + #endregion + + //Dispose streams + outputStream.Dispose(); } {% endhighlight %} @@ -177,7 +183,9 @@ Line * Line
* Line_Markers
-* Line_3D +* Line_3D
+* Stacked_Line
+* Stacked_Line_Markers @@ -188,7 +196,8 @@ Pie * Pie
* Pie_Exploded
* Pie_3D
-* Pie_Exploded_3D +* Pie_Exploded_3D
+* PieOfPie @@ -219,7 +228,9 @@ Stock * Stock_HighLowClose
-* Stock_OpenHighLowClose +* Stock_OpenHighLowClose
+* Stock_VolumeOpenHighLowClose
+* Stock_VolumeHighLowClose @@ -227,14 +238,25 @@ Stock Excel 2016 Charts -* Funnel
* Waterfall
* Histogram
* Pareto
+* Funnel
+* Waterfall
+* Histogram
+* Pareto
+* Sunburst
+* Box and Whisker
+* Treemap + -N> From the above supported chart types table, Waterfall and Line_3D charts are not supported in chart to image conversion in .NET Standard 2.0 onwards. +N> From the above supported chart types table, Line_3D charts are not supported in chart to image conversion in .NET Standard 2.0 onwards. N> Only embedded charts are supported in chart to image conversion. Chart sheets are not supported. +N> Waterfall charts are supported in both .NET Framework and .NET Core platforms for chart to image conversion. + +N> Pie of Pie, Sunburst, Box and Whisker, and Treemap charts are supported only in .NET Core platforms for chart to image conversion. + ## Supported chart elements XlsIO supports the following chart elements in image conversion: ![Chart to Image Conversion](Working-With-Charts_images/chart-elements.jpeg) diff --git a/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md b/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md index fa520684a..2a06b1b96 100644 --- a/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md +++ b/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md @@ -188,7 +188,8 @@ Pie * Pie
* Pie_Exploded
* Pie_3D
-* Pie_Exploded_3D +* Pie_Exploded_3D
+* PieOfPie @@ -229,14 +230,25 @@ Stock Excel 2016 Charts -* Funnel
* Waterfall
* Histogram
* Pareto
+* Funnel
+* Waterfall
+* Histogram
+* Pareto
+* Sunburst
+* Box and Whisker
+* Treemap + -N> From the above supported chart types table, Waterfall and Line_3D charts are not supported in chart to image conversion in .NET Standard 2.0 onwards. +N> From the above supported chart types table, Line_3D charts are not supported in chart to image conversion in .NET Standard 2.0 onwards. N> Only embedded charts are supported in chart to image conversion. Chart sheets are not supported. +N> Waterfall charts are supported in both .NET Framework and .NET Core platforms for chart to image conversion. + +N> Pie of Pie, Sunburst, Box and Whisker, and Treemap charts are supported only in .NET Core platforms for chart to image conversion. + ## Supported chart elements XlsIO supports the following chart elements in image conversion: ![Chart to Image Conversion](NET/Working-With-Charts_images/chart-elements.jpeg) @@ -248,4 +260,4 @@ XlsIO supports the following chart elements in image conversion: 4. Data labels 5. Grid lines 6. Legend -7. Trend line +7. Trend line \ No newline at end of file From 1b8ca7573a797f339ded09f3bebb175ed7f3681c Mon Sep 17 00:00:00 2001 From: MOHAN CHANDRAN <93247949+Mohan2401@users.noreply.github.com> Date: Tue, 9 Dec 2025 14:58:06 +0530 Subject: [PATCH 2/4] Update Chart-to-Image-Conversion.md --- .../Chart-to-Image/NET/Chart-to-Image-Conversion.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md b/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md index 6d3da03cc..b00d2f723 100644 --- a/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md +++ b/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md @@ -249,11 +249,9 @@ Excel 2016 Charts -N> From the above supported chart types table, Line_3D charts are not supported in chart to image conversion in .NET Standard 2.0 onwards. +N> From the above supported chart types table, Line_3D charts are not supported in chart to image conversion in .NET Core platforms. -N> Only embedded charts are supported in chart to image conversion. Chart sheets are not supported. - -N> Waterfall charts are supported in both .NET Framework and .NET Core platforms for chart to image conversion. +N> Only embedded charts are supported in chart to image conversion. The Chart sheets are not supported. N> Pie of Pie, Sunburst, Box and Whisker, and Treemap charts are supported only in .NET Core platforms for chart to image conversion. From 8d2cc3afd42de0ddf6ddf44a551c2fa27a63cca5 Mon Sep 17 00:00:00 2001 From: KarthikaSF4773 Date: Thu, 11 Dec 2025 11:55:30 +0530 Subject: [PATCH 3/4] 997816-UpdateSupportedChartsDev --- .../NET/Chart-to-Image-Conversion.md | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md b/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md index b00d2f723..81f265d51 100644 --- a/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md +++ b/Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md @@ -19,36 +19,30 @@ The following code snippet shows how to convert an Excel chart to an image using {% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/Chart%20to%20Image/Chart%20to%20Image/.NET/Chart%20to%20Image/Chart%20to%20Image/Program.cs,180" %} using (ExcelEngine excelEngine = new ExcelEngine()) { - //Initialize application - IApplication application = excelEngine.Excel; - - //Set the default version as Xlsx - application.DefaultVersion = ExcelVersion.Xlsx; + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; - //Initialize XlsIORenderer - application.XlsIORenderer = new XlsIORenderer(); + // Initialize XlsIORenderer + application.XlsIORenderer = new XlsIORenderer(); - //Set converter chart image format to PNG or JPEG - application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png; + //Set converter chart image format to PNG + application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png; - //Set the chart image quality to best - application.XlsIORenderer.ChartRenderingOptions.ScalingMode = ScalingMode.Best; + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(inputStream); + IWorksheet worksheet = workbook.Worksheets[0]; - //Open existing workbook with chart - IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx")); - IWorksheet worksheet = workbook.Worksheets[0]; - - //Access the chart from the worksheet - IChart chart = worksheet.Charts[0]; + IChart chart = worksheet.Charts[0]; - #region Save - //Exporting the chart as image - FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write); - chart.SaveAsImage(outputStream); - #endregion + #region Save + //Saving the workbook + FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write); + chart.SaveAsImage(outputStream); + #endregion - //Dispose streams - outputStream.Dispose(); + //Dispose streams + outputStream.Dispose(); + inputStream.Dispose(); } {% endhighlight %} From c0fb0114ba273f66003b1efd7827f6314e4cf42b Mon Sep 17 00:00:00 2001 From: KarthikaSF4773 Date: Thu, 11 Dec 2025 12:02:36 +0530 Subject: [PATCH 4/4] 997816-UpdateSupportedChartsDev --- .../Excel/Conversions/Chart-to-Image/overview.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md b/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md index 2a06b1b96..96c2dc029 100644 --- a/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md +++ b/Document-Processing/Excel/Conversions/Chart-to-Image/overview.md @@ -241,11 +241,9 @@ Excel 2016 Charts -N> From the above supported chart types table, Line_3D charts are not supported in chart to image conversion in .NET Standard 2.0 onwards. +N> From the above supported chart types table, Line_3D charts are not supported in chart to image conversion in .NET Core platforms. -N> Only embedded charts are supported in chart to image conversion. Chart sheets are not supported. - -N> Waterfall charts are supported in both .NET Framework and .NET Core platforms for chart to image conversion. +N> Only embedded charts are supported in chart to image conversion. The Chart sheets are not supported. N> Pie of Pie, Sunburst, Box and Whisker, and Treemap charts are supported only in .NET Core platforms for chart to image conversion.