PDA

View Full Version : How to bring shade background for bar chart in extjs4.1



vijayakumar84
19 Jul 2013, 8:27 AM
Hi
Can anybody tell How to give shade background for bar chart in extjs4.1.I want odd shade for background for barchart like example eg for 1,3,5,7 etc data set need to show shade background for barchart data set

can anybody tell how to do


Thanks

slemmon
24 Jul 2013, 1:51 PM
You can define the SVG attributes to use when rendering the shadow for the bars using shadowAttributes, but that will apply to all bars.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.chart.series.Bar-cfg-shadowAttributes

While there isn't a way to modify the shadow per bar you can use a renderer to modify the appearance of the bar itself.