PDA

View Full Version : chart - right now the band is displayed to horizontal, I want this band Vertical



vijaypatil12
16 Mar 2011, 3:13 AM
hi, below is my code, and i want month on x-axis and R1,R2,R3,R4 on y-axis,

right now the band is displayed to horizontal, I want this band Vertical

what change should i do in code for that -

please help

-----

var store3 = new Ext.data.JsonStore({
fields: ['month', 'R1', 'R2', 'R3', 'R4'],
data: [
{month: 'Oct 09', R1: 10, R2: 20, R3: 30, R4: 40},
{month: 'Nov 09', R1: 20, R2: 10, R3: 50, R4: 90}

]
});

new Ext.Panel({
//width: 400,
height:250,
renderTo: 'container5',
items: {
xtype: 'stackedbarchart',
store: store3,
yField: 'month',


xAxis: new Ext.chart.NumericAxis({
stackingEnabled: true,

}),
series: [{
xField: 'R1',
displayName: 'R1'
},{
xField: 'R2',
displayName: 'R2'
},{
xField: 'R3',
displayName: 'R3'
},{
xField: 'R4',
displayName: 'R4'
}]
}
});