Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript ExtJS:使用图表测试生成应用程序失败_Javascript_Extjs_Extjs4_Bar Chart - Fatal编程技术网

Javascript ExtJS:使用图表测试生成应用程序失败

Javascript ExtJS:使用图表测试生成应用程序失败,javascript,extjs,extjs4,bar-chart,Javascript,Extjs,Extjs4,Bar Chart,我有一个问题,建立一个测试应用程序与图表。我用sencha cmd构建了一个应用程序,并开发了我的应用程序。现在我尝试用sencha cmd构建一个测试应用程序,现在我得到了错误 未捕获错误:[Ext.createByAlias]无法创建无法识别的别名的实例:series.bar 商店: 我的图表的代码: Ext.define('test.view.Chart1', { extend: 'Ext.chart.Chart', alias: 'widget.Chart1', width: 350,

我有一个问题,建立一个测试应用程序与图表。我用sencha cmd构建了一个应用程序,并开发了我的应用程序。现在我尝试用sencha cmd构建一个测试应用程序,现在我得到了错误

未捕获错误:[Ext.createByAlias]无法创建无法识别的别名的实例:series.bar

商店:

我的图表的代码:

Ext.define('test.view.Chart1', {
extend: 'Ext.chart.Chart',
alias: 'widget.Chart1',
width: 350,
height: 300,
animate: true,
id: 'statisticKeyID',
store: 'statisticKey',
border: 0,
axes: [{
        type: 'Numeric',
        position: 'bottom',
        fields: ['count'],
        label: {
            renderer: Ext.util.Format.numberRenderer('0,0')
        },
        grid: true,
        minimum: 0
    }, {
        type: 'Category',
        position: 'left',
        fields: ['key']
    }],
series: [{
        type: 'bar',
        axis: 'bottom',
        highlight: true,
        tips: {
            trackMouse: true,
            width: 140,
            height: 28,
            renderer: function(storeItem, item) {
                this.setTitle(storeItem.get('key') + ': ' + storeItem.get('count') + ' Patienten');
            }
        },
        label: {
            display: 'insideEnd',
            field: 'count',
            renderer: Ext.util.Format.numberRenderer('0'),
            orientation: 'horizontal',
            color: '#333',
            'text-anchor': 'middle'
        },
        xField: 'key',
        yField: ['count']
    }]
    });
在我的开发系统中,一切都很好,但是当我构建一个测试系统时,我得到了错误,并且没有显示任何图表

Thx要获得帮助,请查看您在开发时是否在控制台中收到“同步”警告,如果是,请修复它们

如果仍然有麻烦,试试看

sencha ant clean

在建造之前

显示您创建的代码
test.view.Chart1
sencha ant clean