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', {
89 var panel1 = Ext.create('widget.panel', {
93 renderTo: Ext.getBody(),
126 items: [pieChart, grid]
128 renderer: function(klass, item) {
129 var storeItem = item.storeItem,
132 data: storeItem.get('data1')
135 data: storeItem.get('data2')
138 data: storeItem.get('data3')
141 data: storeItem.get('data4')
144 data: storeItem.get('data5')
147 this.setTitle("Information for " + storeItem.get('name'));
148 pieStore.loadData(data);
149 gridStore.loadData(data);