PDA

View Full Version : column chart color



dusoo
25 Aug 2010, 12:18 AM
Hi,
is it possible to have different chart color for data below 90% of yField ?
Thanks a lot for any tips,
D.



var chart = new Ext.Panel({
iconCls:'chart',
title: 'availability per hour',
frame:true,
items: {
xtype: 'columnchart',
store: chart_store2,
xField: 'hh',
yField: 'avail',
yAxis: new Ext.chart.NumericAxis({
title: '[%]',
maximum: 100
}),
xAxis: new Ext.chart.CategoryAxis({
title: 'hour'
})
}
});

pmatsumura
25 Aug 2010, 12:50 AM
Hi

Have you looked into the sample (http://dev.sencha.com/deploy/dev/examples/chart/charts.html)? I think "series" could be interesting for you. Search the docs for "extraStyle" here -> http://dev.sencha.com/deploy/dev/docs/?class=Ext.chart.ColumnChart