jaidengre
25 Oct 2010, 1:31 AM
I am using the below to configure my chart
var stackedBarChart = new Ext.Panel({
width: 600,
height: 400,
autoScroll: true,
title: 'Performance Analysis',
items: {
xtype: 'stackedbarchart',
store: getTimeLineStore(),
yField: 'eventName',
xAxis: new Ext.chart.NumericAxis({
stackingEnabled: true
}),
series: [
{style: { colors: ['#F87217', ' #FF0000' , '#4AA02C']}},
{
xField: 'offset',
displayName: 'Start Offset (Time before actual event star.)'
},{
xField: 'totalTime',
displayName: 'Total Time taken'
}]
}
});
I want to apply custom color to each series item. Like offset should have white color and totalTime should have green color. I tried giving style to series but the colors do not get picked up. the colors get changed if i provide a style element in series element but they are not the once which I define. Please help me to configure custom color for series.
var stackedBarChart = new Ext.Panel({
width: 600,
height: 400,
autoScroll: true,
title: 'Performance Analysis',
items: {
xtype: 'stackedbarchart',
store: getTimeLineStore(),
yField: 'eventName',
xAxis: new Ext.chart.NumericAxis({
stackingEnabled: true
}),
series: [
{style: { colors: ['#F87217', ' #FF0000' , '#4AA02C']}},
{
xField: 'offset',
displayName: 'Start Offset (Time before actual event star.)'
},{
xField: 'totalTime',
displayName: 'Total Time taken'
}]
}
});
I want to apply custom color to each series item. Like offset should have white color and totalTime should have green color. I tried giving style to series but the colors do not get picked up. the colors get changed if i provide a style element in series element but they are not the once which I define. Please help me to configure custom color for series.