[
Log In
]
HOME
SAMPLES
DOCS
DOWNLOAD
LICENSING/PRICING
SUPPORT
FORUM
WHAT'S NEW
PRODUCT ROADMAP
ABOUT US
Home
\
Support
\ Forum
Welcome Guest
Search
|
Active Topics
|
ERROR
DataViz Charts and Gauges
»
DataViz Charts Forums
»
DataViz Charts and Gauges for JavaScript/jQuery
»
jqChart change bar color based on value
jqChart change bar color based on value
Options
Previous Topic
Next Topic
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
Back to top
User Profile
View Thanks
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.
Back to top
User Profile
View Thanks
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
Back to top
User Profile
View Thanks
Users browsing this topic
Guest
(2)
DataViz Charts and Gauges
»
DataViz Charts Forums
»
DataViz Charts and Gauges for JavaScript/jQuery
»
jqChart change bar color based on value
Forum Jump
DataViz Charts Forums
- DataViz Charts and Gauges for JavaScript/jQuery
- DataViz Charts and Gauges for ASP.NET MVC
- DataViz Charts for ASP.NET Web Forms
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.
Watch this topic
Email this topic
Print this topic
RSS Feed
Normal
Threaded
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.079 seconds.