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

Conditional formatting on column series

2 Answers 61 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 23 Mar 2015, 10:40 AM
Hi,

I'd like to conditionally format data in a column series.

The demo for this that is in the demos section purports to being conditional formatting but it isn't.  It is actually simple series formatting.(http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/custombarcolor/defaultvb.aspx?show-source=true).  I don't want to have to have two series merged into one or to fiddle with the sql code.

I want to be able to do the following:
Value is above 90 colour the column green
Between 70 and 90 colour it orange
Below 70 colour it red

That is conditional formatting.  I am happy doing it in a data bound type event however there are no samples that I could see for this.  Please could one be generated and added to the demo lists.

Regards

Jon

2 Answers, 1 is accepted

Sort by
0
Accepted
Danail Vasilev
Telerik team
answered on 23 Mar 2015, 11:51 AM
Hi Jon,

You can set conditional color for series items by defining functions, as illustrated in this feedback item - http://feedback.telerik.com/Project/108/Feedback/Details/154102

I have also updated your Telerik points for sharing your ideas with us.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 23 Mar 2015, 12:46 PM
Hi Danail

That works perfectly thank you.  It would be great to see more of these work around type functions shown as demos, I've seen so many of them now that they really do enchance what you can do.

I was going to say you probably don't need it as an integrated option but you do because obviously people will want to have the charts in reports and the kendo JS functions won't help there will they.

Thanks again for your help.

Jon
Tags
Chart (HTML5)
Asked by
Jon
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Jon
Top achievements
Rank 1
Share this question
or