X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/examples/chart/pie-chart.js diff --git a/examples/chart/pie-chart.js b/examples/chart/pie-chart.js index 5df4bd2b..297b65af 100644 --- a/examples/chart/pie-chart.js +++ b/examples/chart/pie-chart.js @@ -1,53 +1,53 @@ /*! - * Ext JS Library 3.1.1 - * Copyright(c) 2006-2010 Ext JS, LLC + * Ext JS Library 3.2.0 + * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ -Ext.chart.Chart.CHART_URL = '../../resources/charts.swf'; - -Ext.onReady(function(){ - var store = new Ext.data.JsonStore({ - fields: ['season', 'total'], - data: [{ - season: 'Summer', - total: 150 - },{ - season: 'Fall', - total: 245 - },{ - season: 'Winter', - total: 117 - },{ - season: 'Spring', - total: 184 - }] - }); - - new Ext.Panel({ - width: 400, - height: 400, - title: 'Pie Chart with Legend - Favorite Season', - renderTo: 'container', - items: { - store: store, - xtype: 'piechart', - dataField: 'total', - categoryField: 'season', - //extra styles get applied to the chart defaults - extraStyle: - { - legend: - { - display: 'bottom', - padding: 5, - font: - { - family: 'Tahoma', - size: 13 - } - } - } - } - }); +Ext.chart.Chart.CHART_URL = '../../resources/charts.swf'; + +Ext.onReady(function(){ + var store = new Ext.data.JsonStore({ + fields: ['season', 'total'], + data: [{ + season: 'Summer', + total: 150 + },{ + season: 'Fall', + total: 245 + },{ + season: 'Winter', + total: 117 + },{ + season: 'Spring', + total: 184 + }] + }); + + new Ext.Panel({ + width: 400, + height: 400, + title: 'Pie Chart with Legend - Favorite Season', + renderTo: 'container', + items: { + store: store, + xtype: 'piechart', + dataField: 'total', + categoryField: 'season', + //extra styles get applied to the chart defaults + extraStyle: + { + legend: + { + display: 'bottom', + padding: 5, + font: + { + family: 'Tahoma', + size: 13 + } + } + } + } + }); }); \ No newline at end of file