# Pie Chart in Word Processing Document {{< alert style="info" >}}In this article, we will use GroupDocs.Assembly to generate a Pie Chart report in Word Processing 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 Word Document ### Creating a Pie Chart Please follow below steps to can create Pie Chart in MS Word 2013. 1. Click in the document where you want to insert the chart, click the "Insert" tab, and then click "Chart" in the illustrations group to open the "Insert Chart" dialog box. 2. Select "Pie". 3. Preview "Pie" and press OK to insert the chart and Worksheet template to your document. 4. Edit the Worksheet with your data to update the chart. See [Chart Data (Excel)](https://docs.groupdocs.com/assembly/net/pie-chart-in-word-processing-document/#adding-syntax-to-be-evaluated-by-groupdocsassembly-engine) 5. 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 Word Processing Document. {{< alert style="info" >}}See the video demonstration of Pie Chart in MS Word [here](https://www.youtube.com/watch?v=boKpFtW_TGE&list=PL25CTxMCj5vOzsaE9Rwjwd4-OwvdaWmJ8&index=13).{{< /alert >}} ### 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.{{< /alert >}} Download Pie Chart Template Please download the sample Pie Chart document we created in this article: * [Pie Chart.docx](https://github.com/groupdocsassembly/GroupDocs_Assembly_NET/blob/master/Examples/Data/Source/Word%20Templates/Pie%20Chart.docx?raw=true) (Template for CustomObject and JSON examples)  * [Pie Chart\_DB.docx](https://github.com/groupdocsassembly/GroupDocs_Assembly_NET/blob/master/Examples/Data/Source/Word%20Templates/Pie%20Chart_DB.docx?raw=true) (Template for DataSet, DataBase and XML examples) ### Generating The Report #### Custom Objects {{< gist GroupDocsGists c33b871157bf4d925324201edb3a2dfd >}} #### Database Entities {{< gist GroupDocsGists e4e73891378c5bfa90ba25a945d64598 >}} #### Using DataSet {{< gist GroupDocsGists d3d2f7114bdc017607a4e08e7a4e3c9f >}} #### Using XML DataSource {{< gist GroupDocsGists 649de00eac7d607cf3ba501c7d130602 >}} #### Using JSON DataSource {{< gist GroupDocsGists 76375a01df61665860a7c60b31dbd200 >}} ## Pie Chart in OpenOffice Document To be investigated.