3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">function generateData(){
\r
10 for(var i = 0; i < 12; ++i){
\r
11 data.push([Date.monthNames[i], (Math.floor(Math.random() * 11) + 1) * 100]);
\r
16 Ext.onReady(function(){
\r
17 var store = new Ext.data.ArrayStore({
\r
18 fields: ['month', 'hits'],
\r
19 data: generateData()
\r
25 renderTo: document.body,
\r
26 title: 'Column Chart with Reload - Hits per Month',
\r
28 text: 'Load new data set',
\r
29 handler: function(){
\r
30 store.loadData(generateData());
\r
34 xtype: 'columnchart',
\r
38 xAxis: new Ext.chart.CategoryAxis({
\r
41 yAxis: new Ext.chart.NumericAxis({
\r