DevExtreme v23.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.
Bar Charts

Customize Points and Labels

This demo shows how you can customize individual points and labels in the Chart component.

Customize Points

Use the customizePoint function to change the appearance of individual series points. This function should return an object with properties that you want to change in a point configuration. This demo uses this function to color all points with values above the "High Average" in red, and points with values below the "Low Average" in blue.

Customize Labels

To customize the appearance of individual point labels, implement the customizeLabel function. This function should also return an object with properties that need to be changed for a certain label. This demo specifies custom labels for the red points.

Create Constant Lines

To create constant lines, follow the steps below:

  1. Choose a direction for the line. You can specify horizontal lines in the valueAxis object, and vertical - in the argumentAxis object.

  2. Specify the constantLines object. In this object, declare an object for each line with the properties you want to change.

Note that it's necessary to specify the value property for the line to display correctly.

Thank you for your interest in our ASP.NET MVC product libraries and UI component suite. We are moving ASP.NET MVC-related demos and content to Please make sure to update your bookmarks with our new URL.

View Demo