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 () {
43 var pieStore = Ext.create('Ext.data.JsonStore', {
44 fields: ['name', 'data'],
48 var pieChart = Ext.create('Ext.chart.Chart', {
55 theme: 'Base:gradients',
69 var gridStore = Ext.create('Ext.data.JsonStore', {
70 fields: ['name', 'data'],
74 var grid = Ext.create('Ext.grid.Panel', {
90 var panel1 = Ext.create('widget.panel', {
94 renderTo: Ext.getBody(),
127 items: [pieChart, grid]
129 renderer: function(klass, item) {
130 var storeItem = item.storeItem,
133 data: storeItem.get('data1')
136 data: storeItem.get('data2')
139 data: storeItem.get('data3')
142 data: storeItem.get('data4')
145 data: storeItem.get('data5')
148 this.setTitle("Information for " + storeItem.get('name'));
149 pieStore.loadData(data);
150 gridStore.loadData(data);
151 grid.setSize(480, 130);