PDA

View Full Version : [3.3.1] Ext.ux.grid.MultiMeasuresPivotGrid



eastxing
23 Feb 2011, 11:41 PM
Ext.ux.grid.MultiMeasuresPivotGrid is an extension to provide "multi-measures" support for standard PivotGrid.

You can configure multi-measures to generate pivot table, just like the following codes:

var pivotGrid = new Ext.ux.grid.MultiMeasuresPivotGrid({
store : myStore,
measures: [{
measure: 'value',
aggregator: 'sum'
}],
leftAxis: [{
width: 60,
dataIndex: 'product'
}, {
width: 80,
dataIndex: 'city'
}, {
width: 120,
dataIndex: 'person'
}],
topAxis: [{
dataIndex: 'year'
}, {
dataIndex: 'quarter'
}],
region: 'center',
margins: '5 5 5 0',
});

Download the zip file and extract it into examples directory to try it yourself.
24823

trendscript
28 Feb 2011, 9:39 AM
nice work!