The following example shows how to use DashboardViewer's API and get client data corresponding to a particular visual element.
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.
When the user clicks a card, the axis points placed on the 'Sparkline' axis are used to determine the actual/target values. The values are saved to a data table whose data are displayed in a Chart control.