• Material 3
  • Fluent
  • Fluent 2
  • Bootstrap 5
  • Tailwind CSS
  • High Contrast
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Range Color Mapping in ASP.NET Core 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.

DEMO
SOURCE

In this example, column segment color is applied based on their y value ranges by using the RangeColorSettings. You can use below properties in the RangeColorSettings to customize the data under range.

  • Label - Specify the name for the range mapping which will be displayed in the legend item.

  • Start - Specify the start value of the color mapping range.

  • End - Specify the end value of the color mapping range.

  • Colors - Specify the fill colors of point those lies on the given range. If multiple colors are mentioned, then gradient will be applied.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab