Under Review
Last Updated: 10 Feb 2021 07:09 by Fredrik
Created on: 03 Feb 2021 06:46
Category: ChartView
Type: Feature Request
RadCartesianChart LineSeries change color on a line depending on the value.

I would like the possibility to change the color of a line depending on the value.

For example:

I have values between -1 to 10.

If the value is -1 I would like the color (or possible the opacity) to change until it goes back to 0 or above.

Posted on: 10 Feb 2021 07:09
Thank you I'll try it out.
Martin Ivanov
Posted on: 09 Feb 2021 10:55

Hello Fredrik,

I've attached a small example showing how to achieve your requirement using a LinearGradientBrush assigned to the LineSeries' Stroke property. Can you please give it a try and let me know if this is what you need?

Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Attached Files: