The following example demonstrates how to get client data corresponding to a particular visual element using DashboardViewer's API.
In this example, the DashboardViewer.DashboardItemClick event is handled to obtain client data for the Card dashboard item and display this data in a Chart control. We obtain axis points placed on the "Sparkline" axis for the clicked card, determine corresponding actual/target values, and save these values to a data table. This table is used as a data source for the Chart control.
Note that you can apply master filtering by year in the Pie dashboard item. The chart will display client data according to the selected year.
↧
How to obtain a dashboard item's client data in the WinForms Viewer
↧