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', {
49 renderTo: Ext.getBody(),
54 store1.loadData(generateData());
68 renderer: Ext.util.Format.numberRenderer('0,0')
70 title: 'Number of Hits',
77 title: 'Month of the Year'
82 id: 'backgroundGradient',
102 renderer: function(storeItem, item) {
103 this.setTitle(storeItem.get('name') + ': ' + storeItem.get('data1') + ' views');
107 display: 'insideEnd',
109 renderer: Ext.util.Format.numberRenderer('0'),
110 orientation: 'horizontal',
112 'text-anchor': 'middle'