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.layout.container.Fit');
18 Ext.onReady(function() {
19 var panel1 = Ext.create('widget.panel', {
22 title: 'ExtJS.com Visits Trends, 2007/2008 (No styling)',
23 renderTo: Ext.getBody(),
38 renderer: Ext.util.Format.numberRenderer('0,0'),
48 renderer: function(name) {
49 return name.substr(0, 3) + ' 07';
59 itemmouseup: function(item) {
60 Ext.example.msg('Item Selected', item.value[1] + ' visits on ' + Ext.Date.monthNames[item.value[0]]);
67 renderer: function(storeItem, item) {
68 this.setTitle(storeItem.get('name') + '<br />' + storeItem.get('data1'));
88 var panel2 = Ext.create('widget.panel', {
91 title: 'ExtJS.com Visits Trends, 2007/2008 (Simple styling)',
92 renderTo: Ext.getBody(),
107 renderer: Ext.util.Format.numberRenderer('0,0'),
117 renderer: function(name) {
118 return name.substr(0, 3);
131 renderer: function(storeItem, item) {
132 this.setTitle(storeItem.get('data2') + ' visits in ' + storeItem.get('name').substr(0, 3));
152 var panel3 = Ext.create('widget.panel', {
155 title: 'ExtJS.com Visits Trends, 2007/2008 (Full styling)',
156 renderTo: Ext.getBody(),
187 renderer: Ext.util.Format.numberRenderer('0,0'),
198 renderer: function(name) {
199 return name.substr(0, 3);
209 fill: 'url(#bar-gradient)',
229 renderer: function(storeItem, item) {
230 this.setTitle(storeItem.get('data2') + ' visits in ' + storeItem.get('name').substr(0, 3));