-
1 Jun 2009 4:39 AM #1
Can you set Column Chart Colors depending upon value
Can you set Column Chart Colors depending upon value
Is it possible to change the columns color depending upon the value (e.g. if less than 0 then set column color to red)?
Thanks in advance.
-
11 Aug 2009 3:18 PM #2
is it possible
is it possible
Hi even I am looking to change the color dynamically based on the user click..
Also is dragging on charts possible..just to select some bars in the column chart...
Thanks
-
12 Aug 2009 1:41 AM #3
Information
Information
So far as far as i can tell no it's not possible. The charting is a third party component and the API is here:
http://developer.yahoo.com/yui/charts/
There are however other options for charting
open flash charts 2 http://teethgrinder.co.uk/open-flash-chart-2/
flot http://code.google.com/p/flot/
and ext variety
http://code.google.com/p/extflot/
Hope all this helps.
-
10 Nov 2011 11:07 AM #4
SOLVED: You can set chart column color depending on the value
SOLVED: You can set chart column color depending on the value
Assuming Ext JS 4.x:
Code:series: [{ type: 'column', ... yField: 'yField', renderer: function(sprite, record, attr, index, store) { var value = record.get('yField'); var color; if (value < 70) { color = 'rgb(255, 0, 0)'; } else { color = 'rgb(0, 0, 255)'; } return Ext.apply(attr, { fill: color }); } }]


Reply With Quote