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', {
60 title: 'Column Chart',
61 renderTo: Ext.getBody(),
66 store1.loadData(generateData(5, 0));
79 fill: 'rgb(17, 17, 17)'
87 color: 'rgb(212, 40, 40)'
90 color: 'rgb(117, 14, 14)'
99 color: 'rgb(180, 216, 42)'
102 color: 'rgb(94, 114, 13)'
111 color: 'rgb(43, 221, 115)'
114 color: 'rgb(14, 117, 56)'
123 color: 'rgb(45, 117, 226)'
126 color: 'rgb(14, 56, 117)'
135 color: 'rgb(187, 45, 222)'
138 color: 'rgb(85, 10, 103)'
149 renderer: Ext.util.Format.numberRenderer('0,0')
151 title: 'Number of Hits',
164 title: 'Month of the Year'
171 display: 'insideEnd',
172 'text-anchor': 'middle',
174 orientation: 'horizontal',
178 renderer: function(sprite, storeItem, barAttr, i, store) {
179 barAttr.fill = colors[i % colors.length];