Example of Range Color Mapping in ASP.NET MVC Chart Control
This sample illustrates the USA climate with the month-wise data. Columns are differentiated using color codes based on the temperature ranges for better visualization. By toggling the legend items you can control the visibility of the columns within the ranges.
In this example, column segment color is applied based on their y
value ranges by using the RangeColorSettingsopens in a new tab
. You can use below properties in the RangeColorSettingsopens in a new tab
to customize the data under range.
-
Labelopens in a new tab
- Specify the name for the range mapping which will be displayed in the legend item. -
Startopens in a new tab
- Specify the start value of the color mapping range. -
Endopens in a new tab
- Specify the end value of the color mapping range. -
Colorsopens in a new tab
- Specify the fill colors of point those lies on the given range. If multiple colors are mentioned, then gradient will be applied.