The following example demonstrates how to customize a dashboard color scheme to color specified dimension values using predefined colors.
In this example, the dashboard contains Pie and Chart dashboard items, whose dimension values are colored by hue. Dimension values and corresponding colors are stored in a data table.
To add custom colors to the dashboard color scheme (the Dashboard.ColorScheme property), ColorSchemeEntry objects are created. The ColorSchemeEntry class allows you to specify the following properties:
- The ColorSchemeEntry.DataSource property specifies a data source containing dimension values to be colored.
- The ColorSchemeEntry.DimensionKeys property allows you to specify required dimension values.
- The ColorSchemeEntry.ColorDefinition property sets the color used to color specified dimension values.
↧
How to customize a dashboard color scheme
↧