How to create Charts in spreadsheet referring the Pivot table data using OpenXML SDK in C#?

Geetanjali Sahni 0 Reputation points
2023-10-26T12:47:36.0766667+00:00

We need to create bar chart and pie chart in spreadsheet with pivot table data using OpenXML SDK in C#. Currently I am using OpenXML to create excel sheets which requires further to create Bar Chart and pie chart.

First, we need to create pivot table with the database data table record and then with the created pivot table data, further I need to create pie chart and bar chart. I don't find any reference solution over internet using Openxml, so it will be great if any sample code is provided to understand and proceed further.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
2,704 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,099 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,563 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Obaid Farooqi MSFT 356 Reputation points Microsoft Employee
    2023-10-26T18:00:41.6133333+00:00

    Hi @Geetanjali Sahni

    The tag Office Open Specifications is dedicated to supporting issues related to open specifications. You can find open specifications here https://learn.microsoft.com/en-us/openspecs/

    You inquiry is not related to open specifications. You may want to post your inquiry to stack overflow at the following link

    https://stackoverflow.com/questions/tagged/openxml-sdk

    Also there are samples at the following locations that you may find useful

    https://learn.microsoft.com/en-us/office/open-xml/how-do-i

    https://github.com/dotnet/Open-XML-SDK/tree/main/samples

    I have removed the Office Open Specifications tag from your post.

    Regards,

    Obaid Farooqi - MSFT

    0 comments No comments