Sencha触摸图:未捕获的TypeError:无法读取未定义的属性“长度”

时间:2014-03-20 11:12:13

标签: sencha-touch-2 sencha-charts

在我的应用中,我正在尝试创建一个仪表图表。我正在使用try.sencha.com提取的以下代码:

var chartgx = new Ext.chart.SpaceFillingChart({
                                    series: [{
                                        type: 'gauge',
                                        minimum: 100,
                                        maximum: 800,
                                        value: 400,
                                        donut: 30,
                                        colors: ["#115fa6", "lightgrey"]
                                    }]
                                });

app.js包含'Ext.chart.SpaceFillingChart',

应用程序崩溃,console.log向我显示:

  

Uncaught TypeError:无法读取未定义的Series.js属性'length'?_ dc = 1395313495296:403
  Ext.define.updateStore Series.js?_dc = 1395313495296:403
  Ext.define.updateChart Series.js?_dc = 1395313495296:664
  setter sencha-touch.js:5553
  (匿名函数)sencha-touch.js:5578
  Ext.define.getStore Series.js?_dc = 1395313495296:396
  Ext.define.processData Series.js?_dc = 1395313495296:609
  Ext.define.updateHidden Series.js?_dc = 1395313495296:904
  setter sencha-touch.js:5553
  Base.implement.initConfig sencha-touch.js:4982
  Ext.define.constructor Observable.js?_dc = 1395313489290:96
  Ext.define.constructor Series.js?_dc = 1395313495296:388
  Base.implement.callParent sencha-touch.js:4718
  Ext.define.constructor Gauge.js?_dc = 1395313495276:100
  类sencha-touch.js:5270
  (匿名函数)VM17961:3
  Ext.ClassManager.instantiate sencha-touch.js:7011
  (匿名函数)sencha-touch.js:3284
  Ext.define.applySeries AbstractChart.js?_dc = 1395313495165:821
  setter sencha-touch.js:5544
  Base.implement.initConfig sencha-touch.js:4982
  Ext.define.constructor Component.js?_dc = 1395313488525:980
  Base.implement.callParent sencha-touch.js:4718
  override.constructor Component.js?_dc = 1395313488525:2904
  Base.implement.callParent sencha-touch.js:4718
  Ext.define.constructor Container.js?_dc = 1395313492912:347
  Base.implement.callOverridden sencha-touch.js:4834
  override.constructor Container.js?_dc = 1395313492912:1553
  Base.implement.callSuper sencha-touch.js:4797
  Ext.define.constructor Component.js?_dc = 1395313495455:140
  Base.implement.callSuper sencha-touch.js:4797
  Ext.define.constructor AbstractChart.js?_dc = 1395313495165:626
  类sencha-touch.js:5270
  doCharts doCharts.js:215
  Ext.Ajax.request.success standardFunctions.js:166
  Ext.apply.callback sencha-touch.js:10405
  Ext.define.onComplete Connection.js?_dc = 1395313497651:902
  Ext.define.onStateChange Connection.js?_dc = 1395313497651:846
  (匿名函数)

我正在使用Sencha Touch 2.3, Sencha Cmd 4.0.2.67

0 个答案:

没有答案