This is a migrated thread and some comments may be shown as answers.

can RadHtmlChart LineSeries have multiple colors for it's DataPoints?

1 Answer 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 29 Mar 2017, 03:30 PM
is there a way to have different colors for DataPoints on the line series yet?
my need is when value < 3 = green; value >3 and < 6  = yellow; value > 6 = red on a line series

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 31 Mar 2017, 10:25 AM

Hello Doug,

You can use the ColorField and provide the desired colors in the data source. You can find an example with similar logic in the following demo: http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/custombarcolor/defaultcs.aspx.

Regards,

Marin Bratanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Chart
Asked by
Doug
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or