Skip to content

The following example shows how to color dashboard item elements at runtime for ASP.NET Core

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-core-dashboard-color-dashboard-item-elements

Repository files navigation

Dashboard for ASP.NET Core - How to Color the Dashboard Item's Elements on the Client

The following example shows how to color a dashboard item's elements on the client. To do this, handle the ViewerApiExtensionOptions.onItemElementCustomColor event, get the item's multidimensional data, and apply the color to the dashboard item's element based on the condition.

The image below displays dashboard items whose values are colored based on their values:

  • Chart item: For 2014, values that exceed 30k are colored green, values below 17k are red, and values between 170k and 30k are gray.
  • Pie item: Values below 80k are colored yellow.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)