Feb 11, 2013, 4:14 PM
[CLOSED] How can change color for only one chart column
Hi,
I need to change the color for one column of the chart,
an example you can see in attached image (the image show the borders as different color instead I want to fill the column with different color)
I try in this way specifying the index of column for the 'value', but it doesn't work.
Thank you so much
I need to change the color for one column of the chart,
an example you can see in attached image (the image show the borders as different color instead I want to fill the column with different color)
I try in this way specifying the index of column for the 'value', but it doesn't work.
function barRenderer(sprite, record, attr, index, store) {
var color = ['rgb(213, 70, 121)',
'rgb(44, 153, 201)',
'rgb(146, 6, 157)',
'rgb(49, 149, 0)',
'rgb(249, 153, 0)'][value];
return Ext.apply(attr, {
fill: color
});
}
Can you help me for this issue?Thank you so much
Last edited by Daniil; Feb 12, 2013 at 10:55 AM.
Reason: [CLOSED]