3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
15 Ext.require('Ext.chart.*');
16 Ext.require(['Ext.Window', 'Ext.layout.container.Fit', 'Ext.fx.target.Sprite']);
18 Ext.onReady(function () {
19 store1.loadData(generateData(5, 0));
21 var colors = ['url(#v-1)',
27 var baseColor = '#eee';
29 Ext.define('Ext.chart.theme.Fancy', {
30 extend: 'Ext.chart.theme.Base',
32 constructor: function(config) {
33 this.callParent([Ext.apply({
55 var win = Ext.create('Ext.Window', {
62 title: 'Column Chart',
63 renderTo: Ext.getBody(),
68 store1.loadData(generateData(5, 0));
81 fill: 'rgb(17, 17, 17)'
89 color: 'rgb(212, 40, 40)'
92 color: 'rgb(117, 14, 14)'
101 color: 'rgb(180, 216, 42)'
104 color: 'rgb(94, 114, 13)'
113 color: 'rgb(43, 221, 115)'
116 color: 'rgb(14, 117, 56)'
125 color: 'rgb(45, 117, 226)'
128 color: 'rgb(14, 56, 117)'
137 color: 'rgb(187, 45, 222)'
140 color: 'rgb(85, 10, 103)'
151 renderer: Ext.util.Format.numberRenderer('0,0')
153 title: 'Number of Hits',
166 title: 'Month of the Year'
173 display: 'insideEnd',
174 'text-anchor': 'middle',
176 orientation: 'horizontal',
180 renderer: function(sprite, storeItem, barAttr, i, store) {
181 barAttr.fill = colors[i % colors.length];