日期:2014-05-16  浏览次数:20398 次

Ext JS4学习教程+笔记(八)Ext.chart.Chart
Ext JS的图表功能,其类名为Ext.chart.Chart

示例代码如下:
function chartTest(){
     var store1 = Ext.create('Ext.data.Store',{
                                   fields:['name','age'],
                                   proxy:{
                                        type:'ajax',
                                        url:'data.txt',
                                        reader:{
                                             type:'json',
                                             root:'items3'
                                        }
                                   }
     });    

     store1.load(function(records, operation, success) {    
          Ext.create('Ext.chart.Chart',{
                              renderTo:Ext.getBody(),
                              width:500,
                              height:300,
                              animate:true,
                              store:store1,
                              axes:[
    &n