Skip to content

DevExpress-Examples/web-forms-dashboard-color-dashboard-item-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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