Welcome Guest Search | Active Topics |

jqChart change bar color based on value
jmedlock
#1 Posted : Thursday, February 23, 2017 12:18:27 PM(UTC)
Rank: Newbie

Groups: DataVizJQuery, jQueryDV, Registered
Joined: 3/17/2015(UTC)
Posts: 3

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I have a column chart and would like to change the column color based on its value. For example, have the default color blue and change the color to red if the value is < 0. Can a condition be used to assign the color or is the only way to compute and create a color array and assign is?

Thanks
James
Dragan
#2 Posted : Friday, February 24, 2017 12:59:51 PM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Here is an example how you can do this:
http://www.jqchart.com/jquery/chart/CustomizingChart/ShapeRenderingEvent
Best Regards,
Dragan Matek
jqChart Inc.
jmedlock
#3 Posted : Friday, February 24, 2017 2:01:40 PM(UTC)
Rank: Newbie

Groups: DataVizJQuery, jQueryDV, Registered
Joined: 3/17/2015(UTC)
Posts: 3

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Thanks, exactly what I was looking for.
James
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.071 seconds.