Bubble Chart in Word Processing Document
In this article, we will use GroupDocs.Assembly to generate a Bubble Chart report in Word Processing Document format.
The code uses some of the objects defined in The Business Layer.
Bubble Chart in Microsoft Word Document
Creating a Bubble Chart
Please follow below steps to create bubble chart in MS Word 2013:
- 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.
- Select “X Y(Scatter)” in the sidebar, you will see a gallery of charts.
- Select the “Bubble” and press “OK” to insert the chart and Worksheet template to your document.
- Right click chart and select ‘Edit Data’ to provide chart data. See Chart Data (Excel).
- Save your Document.
Reporting Requirement
As a report developer, you are required to share your sales/orders dynamically with the following key requirements:
- Retrieve total Contract Prices by Months.
- Report must be generated in the Word Processing Document.
Adding Syntax to be evaluated by GroupDocs.Assembly Engine
Chart Title
Total Contract Prices by Months<<foreach [in getContracts()
.groupBy(c => c.getDate().getMonth())]>><<x [key + 1]>>
Chart Data (Excel)
X-Values | Total Contract Price<<y [sum(c => c.getPrice())]>><<size[count()]>> | Size |
0.7 | 2.7 | 10 |
1.8 | 3.2 | 4 |
2.6 | 0.8 | 8 |
Please download the sample Bubble Chart document we created in this article:
Generating The Report
Bubble Chart in OpenOffice Document
To be investigated.