# Pie Chart in Presentation Document {{< alert style="info" >}}In this article, we will use GroupDocs.Assembly to generate a Pie Chart report in Presentation Document format based on the use case: [Working with a Business Case](https://docs.groupdocs.com/assembly/net/working-with-a-business-case/).{{< /alert >}}{{< alert style="info" >}}The code uses some of the objects defined in [The Business Layer](https://docs.groupdocs.com/assembly/net/the-business-layer/).{{< /alert >}} ## Pie Chart in Microsoft PowerPoint Document ### Creating a Pie Chart Please follow below steps to create Pie Chart in MS PowerPoint 2013: 1. Add a new presentation slide. 2. Click the "Insert" tab, and then click "Chart" in the illustrations group to open the "Insert Chart" dialog box. 3. Select "Pie". 4. Preview "Pie" and press OK to insert the chart and Worksheet template to your document. 5. Edit the Worksheet with your data to update the chart. See [Chart Data (Excel)](https://docs.groupdocs.com/assembly/net/pie-chart-in-presentation-document/#adding-syntax-to-be-evaluated-by-groupdocsassembly-engine) 6. Save the template. ### Reporting Requirement As a report developer, you are required to share your customers' orders details dynamically with the following key requirements: * The report must show information on a Pie Chart. * It must indicate customer name with value (price of the orders purchased). * The report must be generated in the Presentation Document. ### Adding Syntax to be evaluated by GroupDocs.Assembly Engine #### Chart Title ```csharp Total Order Price<> <> ``` #### Chart Data (Excel)

Total Order Price<<y [Order.Sum(c => c.Price)]>>

8.2

3.2

1.4

1.2

{{< alert style="success" >}}For detailed technical information about syntax, expressions and report generation by the engine, please visit: [Working with GroupDocs.Assembly Engine](https://docs.groupdocs.com/assembly/net/working-with-groupdocs-assembly-engine/).{{< /alert >}} ### Download Pie Chart Template Please download the sample Pie Chart document we created in this article: * [Pie Chart.pptx](https://github.com/groupdocsassembly/GroupDocs_Assembly_NET/blob/master/Examples/Data/Source/Presentation%20Templates/Pie%20Chart.pptx?raw=true) (Template for CustomObject and JSON examples)  * [Pie Chart\_DB.pptx](https://github.com/groupdocsassembly/GroupDocs_Assembly_NET/blob/master/Examples/Data/Source/Presentation%20Templates/Pie%20Chart_DB.pptx?raw=true) (Template for DataSet, DataBase and XML examples) ### Generating The Report #### Custom Objects {{< gist GroupDocsGists d8e5e6c2c67586251d1eb916e67836a3 >}} #### Database Entities {{< gist GroupDocsGists cf1b09d04d490cc9fb6d572ee00bbcb0 >}} #### Using DataSet {{< gist GroupDocsGists 68638095f8040c6aaf6d5e91f2c82435 >}} #### Using XML DataSource {{< gist GroupDocsGists 1fd8106e2af73a753ac7bcddca1cd82f >}} #### Using JSON DataSource {{< gist GroupDocsGists 23fa67fa7663c12a0486f949adbda8fd >}} ## Pie Chart in OpenOffice Presentation Document To be investigated.