Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 3.54 KB

File metadata and controls

40 lines (27 loc) · 3.54 KB

Dashboard for Web Forms - 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)