Thank you for reporting this bug. We will make it our priority to review this report.
sencha-charts Axis undefined errors
sencha-charts Axis undefined errors
I have upgraded my app from 4.2.2 to 5.0.1. I have included the new sencha-charts in the required app file. When rendering an bar chart, I consistently receive:
CartesianChart.js line 217 undefinedCode:
for (var i = 0; i < axes.length; i++) {
axis = axes[i];
floating = axis.getFloating();
I define my axis as I always have:Code:
self.axes = [{
xtype: 'axis',
type: 'numeric',
position: 'left',
fields: self.yFields,
title: '# of Students',
grid: true
}, {
xtype: 'axis',
type: 'category',
position: 'bottom',
fields: ['name'],
label: {
rotate: {
degrees: -20
}
}
}];
If I change my axis to be defined via Ext.create, I get a bit further...Code:
Uncaught TypeError: Cannot read property 'setRect' of null CartesianChart.js?_dc=1414030371605:114Ext.define.performLayout CartesianChart.js?_dc=1414030371605:114Ext.define.doScheduleLayout AbstractChart.js?_dc=1414030371626:567
It seems like something is not being included correctly in sencha-charts. My requires on the Chart.js classCode:
requires: [
'Ext.chart.*',
'Ext.chart.series.*',
'Ext.chart.axis.*',
'Ext.chart.interactions.ItemHighlight',
'Ext.draw.*'
],
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
sencha-charts Axis undefined errors
Aucun commentaire:
Enregistrer un commentaire