Declined
Last Updated: 17 May 2021 12:43 by ADMIN
Fredrik
Created on: 03 Feb 2021 06:46
Category: ChartView
Type: Feature Request
0
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.

2 comments
Fredrik
Posted on: 10 Feb 2021 07:09
Thank you I'll try it out.
ADMIN
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?

Regards,
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: