This example demonstrates how to subscribe to the dashboard.items collection changes to track when new items are added or existing items are removed. This allows you to change the default item configuration with the Dashboard Model API.
This example applies the following settings to the newly added dashboard items:
- Assigns "Local Color Scheme".
- Adds custom name.
- Limits chart's display data.
- Assigns a custom dateTimeGroupInterval for the newly added dimensions.
- Invokes a notification dialog when you remove the existing item.
The image below shows the added chart item with the custom "Chart 1 - Custom Name" caption that displays sales of the Beverages category only.
(you will be redirected to DevExpress.com to submit your response)