]>
git.proxmox.com Git - extjs.git/blob - extjs/examples/kitchensink/classic/samples/view/charts/bar3d/Stacked.js
2 * Stacked 3D bars are 3D bar charts where categories are stacked next to each
3 * other. This is typically done to visually represent the total of all categories for a
4 * given period or value.
6 Ext
.define('KitchenSink.view.charts.bar3d.Stacked', {
8 xtype
: 'bar-stacked-3d',
9 controller
: 'bar-stacked-3d',
12 // Content between example tags is omitted from code preview.
13 bodyStyle
: 'background: transparent !important',
20 path
: 'classic/samples/view/charts/bar3d/StackedController.js'
23 path
: 'classic/samples/store/Browsers.js'
28 initComponent: function() {
48 store
: {type
: 'browsers'},
51 animation
: Ext
.isIE8
? false : {
57 text
: 'Bar Charts - Stacked Bars',
61 x
: 40, // the sprite x position
62 y
: 20 // the sprite y position
65 text
: 'Data: Browser Stats 2012',
71 text
: 'Source: http://www.w3schools.com/',
79 adjustByMajorUnit
: true,
81 renderer
: 'onAxisLabelRender',
90 title
: [ 'IE', 'Firefox', 'Chrome', 'Safari' ],
92 yField
: [ 'data1', 'data2', 'data3', 'data4' ],
97 renderer
: 'onSeriesTooltipRender'
102 style
: 'margin-top: 10px;',
108 renderer
: 'onColumnRender'
111 { text
: 'Month', dataIndex
: 'month', renderer
: Ext
.identityFn
},
112 { text
: 'IE', dataIndex
: 'data1' },
113 { text
: 'Firefox', dataIndex
: 'data2' },
114 { text
: 'Chrome', dataIndex
: 'data3' },
115 { text
: 'Safari', dataIndex
: 'data4' }
118 store
: {type
: 'browsers'},