Inserting Chart Axis Title Dynamically in Presentation Document
Leave feedback
NoteThis feature is supported by version 18.1 or greater
NoteThe code uses some of the objects defined in The Business Layer.
Please follow below steps to create a column chart in MS PowerPoint 2013:
- Create a new presentation slide
- Click the “Insert” tab, and then click “Chart” in the illustrations group to open the “Insert Chart” dialogue box
- Select “Column” in the sidebar, you will see a gallery of charts
- Select the “100% Stacked Column” and press “OK” to insert the chart and Worksheet template to your document
- Edit the Worksheet with your data to update the chart
- Save your Document
As a report developer, you are required to share orders quantity of the customers dynamically with the following key requirements:
- Report must show quantity of sales/orders
- Sales/orders quantity must be represented by Quarters
- It must associate order quantity with the corresponding customer
- Report must be generated in the Presentation Document
Total Contract Prices by Quarters<<foreach [in getContracts()
.where(c => c.getDate().getYear() + 1900 == 2015)
.groupBy(c => c.getManager())
.orderBy(g => g.key.getName())]>><<x [key.getName()]>>
| 1st Quarter<<y [where(c => c.getDate().getMonth() >= 0 && c.getDate().getMonth() <= 2).sum(c => c.getPrice())]>> | 2nd Quarter<<y [where(c => c.getDate().getMonth() >= 3 && c.getDate().getMonth() <= 5).sum(c => c.getPrice())]>> | 3rd Quarter<<y [where(c => c.getDate().getMonth() >= 6 && c.getDate().getMonth() <= 8).sum(c => c.getPrice())]>> | 4th Quarter<<y [where(c => c.getDate().getMonth() >= 9 && c.getDate().getMonth() <= 11).sum(c => c.getPrice())]>> |
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 |
Please download the sample Chart Template we created in this article:
- Chart Template.pptx (Template for CustomObject and JSON examples)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.