Code:
var store = Ext.create('Ext.data.JsonStore', { fields: ['year', 'comedy', 'action', 'drama', 'thriller'], data: [ {year: 2005, comedy: 0, action: 0, drama: 0, thriller: 0}, {year: 2006, comedy: 0, action: 0, drama: 0, thriller: 0}, {year: 2007, comedy: 0, action: 0, drama: 0, thriller: 0}, {year: 2008, comedy: 0, action: 0, drama: 0, thriller: 0} ] }); var panel1 = Ext.create('widget.panel', { width: 800, height: 400, title: 'Stacked Bar Chart - Movies by Genre', renderTo: Ext.getBody(), layout: 'fit', items: { xtype: 'chart', animate: true, shadow: true, store: store, legend: { position: 'right' }, axes: [{ type: 'Numeric', position: 'bottom', fields: ['comedy', 'action', 'drama', 'thriller'], title: false, grid: true, label: { renderer: function(v) { return String(v).replace(/000000$/, 'M'); } }, roundToDecimal: false }, { type: 'Category', position: 'left', fields: ['year'], title: false }], series: [{ type: 'bar', axis: 'bottom', gutter: 80, xField: 'year', yField: ['comedy', 'action', 'drama', 'thriller'], stacked: true, tips: { trackMouse: true, width: 65, height: 28, renderer: function(storeItem, item) { this.setTitle(String(item.value[1] / 1000000) + 'M'); } } }] } });
You can see that the error gets thrown. But if you give the fields "comedy", "action", "thriller" and "drama" a value greater than 0, there is no error message.