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.fx.target.Sprite', 'Ext.layout.container.Fit']);
18 Ext.onReady(function () {
19 Ext.chart.theme.White = Ext.extend(Ext.chart.theme.Base, {
20 constructor: function() {
21 Ext.chart.theme.White.superclass.constructor.call(this, {
23 stroke: 'rgb(8,69,148)',
27 fill: 'rgb(8,69,148)',
29 'font-family': '"Arial',
32 renderer: function(v) { return v; }
35 font: 'bold 18px Arial'
41 var win = Ext.create('Ext.Window', {
47 renderTo: Ext.getBody(),
52 store1.loadData(generateData());
66 renderer: Ext.util.Format.numberRenderer('0,0')
68 title: 'Number of Hits',
75 title: 'Month of the Year'
80 id: 'backgroundGradient',
100 renderer: function(storeItem, item) {
101 this.setTitle(storeItem.get('name') + ': ' + storeItem.get('data1') + ' views');
105 display: 'insideEnd',
107 renderer: Ext.util.Format.numberRenderer('0'),
108 orientation: 'horizontal',
110 'text-anchor': 'middle'