Hi All,
I started trying EXTJS5 beta, as part of this wanted to start with charts. when i compiled the below code i see an error. i see charts has been moved to packages\ext-charts\src\chart. Can someone help me in resolving this?
My starter component.
Ext.define("EXTJS5.view.starter.Starter", {
extend: 'Ext.panel.Panel',
alias: 'widget.starter',
requires: ['Ext.chart.Chart'],
items:[
{
xtype: 'chart',
width: '100%',
height: 400,
axes:[
{
type: 'Numeric',
position: 'left',
title: 'Count'
},
{
type: 'Category',
position: 'bottom',
title: 'Alarms'
}
],
series:{
type: 'column',
axis: 'left',
xField: 'alarmSeverity',
yField: 'count'
}
}
]
});
ERROR:
E:\SenchaWorkspace\EXTJS5\WebContent>sencha app build testing
Sencha Cmd v5.0.0.116
[INF] Loading app json manifest...
[ERR] C2008: Requirement had no matching files (Ext.chart.Chart) -- E:\SenchaWorkspace\EXTJS5\WebContent\app\view\starter\Starter.js:4:1
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for E:\SenchaWorkspace\EXTJS5\WebContent\app\view\starter\Starter.js::ClassRequire:
:Ext.chart.Chart
[ERR]
[ERR] Total time: 5 seconds
[ERR] The following error occurred while executing this line:
E:\SenchaWorkspace\EXTJS5\WebContent\.sencha\app\build-impl.xml:368: The following error occurred while executing this line:
E:\SenchaWorkspace\EXTJS5\WebContent\.sencha\app\init-impl.xml:240: com.sencha.exceptions.ExBuild: Failed to find any files for E:\SenchaWorkspac
e\EXTJS5\WebContent\app\view\starter\Starter.js::ClassRequire::Ext.chart.Chart