# Column Chart in Word Processing Document {{< 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 >}} ## Column Chart in Microsoft Word Document ### Creating a Column Chart Practicing the following steps, you can insert a Column 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" dialogue box. 2. Select "Column" in the sidebar, you will see a gallery of charts. 3. Select the "100% Stacked Column" 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/column-chart-in-word-processing-document/#adding-syntax-to-be-evaluated-by-groupdocsassembly-engine). 5. Save your Document. ### Reporting Requirement As a report developer, you are required to share orders quantity of the customers dynamically with the following key requirements: * A report must show the quantity of sales/orders. * Sales/orders quantity must represented by Quarters. * It must associate order quantity with the corresponding customer. * A report must be generated in the Word Processing Document. ### Adding Syntax to be evaluated by GroupDocs.Assembly Engine #### Chart Title ```csharp Total Order Quantity by Quarters< c.OrderDate.Year == 2015) .GroupBy(c => c.Customer) .OrderBy(g => g.Key.CustomerName)]>><> ``` #### Chart Data (Excel)

 

1st Quarter<<y [Where(c => c.Date.Month >= 1 && c.Date.Month <= 3).Sum(c => c.ProductQuantity)]>>

2nd Quarter<<y [Where(c => c.Date.Month >= 4 && c.Date.Month <= 6).Sum(c => c.ProductQuantity)]>>

3rd Quarter<<y [Where(c => c.Date.Month >= 7 && c.Date.Month <= 9).Sum(c => c.ProductQuantity)]>>

4th Quarter<<y [Where(c => c.Date.Month >= 10 && c.Date.Month <= 12).Sum(c => c.ProductQuantity)]>>

Category 1

4.3

2.4

2

3

Category 2

2.5

4.4

2

2

Category 3

3.5

1.8

3

5

Category 4

4.5

2.8

5

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 Template Please download the sample Chart with Filtering, Grouping, and Ordering document we created in this article: * [Chart Template.docx](https://github.com/groupdocsassembly/GroupDocs_Assembly_NET/blob/master/Examples/Data/Source/Word%20Templates/Chart%20with%20Filtering%2C%20Grouping%2C%20and%20Ordering.docx?raw=true) (Template for CustomObject and JSON examples)  * [Chart Template\_DB.docx](https://github.com/groupdocsassembly/GroupDocs_Assembly_NET/blob/master/Examples/Data/Source/Word%20Templates/Chart%20with%20Filtering%2C%20Grouping%2C%20and%20Ordering_DB.docx?raw=true) (Template for DataSet, DataBase examples) * [Chart Template\_XML.docx](https://github.com/atirtahirgroupdocs/GroupDocs_Assembly_NET/blob/master/Examples/Data/Source/Word%20Templates/Chart%20with%20Filtering%2C%20Grouping%2C%20and%20Ordering_XML.docx?raw=true) (Template for XML examples)  ### Generating The Report #### Custom Objects {{< 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 >}}{{< gist GroupDocsGists 48b05daa8212398d47512b1713c2d1e4 >}} #### Database Entities {{< 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 >}}{{< gist GroupDocsGists 2221cf16adb17137c5d1ab49c8c6b7b9 >}} #### Using DataSet {{< 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 >}}{{< gist GroupDocsGists 2ef82dbe9f01c347801e13e86f8b01f8 >}} #### Using XML DataSource {{< 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 >}}{{< gist GroupDocsGists 80569b97044698f7346ea3597dcc466a >}} #### Using JSON DataSource {{< 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 >}}{{< gist GroupDocsGists ff5500a0fe88f9e38a6e16957d1feeaf >}} ## Column Chart in OpenOffice Document To be investigated.