Hi,
After updating Ext JS to the version 4.0.7 my charts with line series and numeric axes dosn't work properly.
I took simple example from the help. If x-axis is type 'Column' it works ok, but I need to have it as a 'Numeric' type, and then it works like this:
chartNumeric.jpg
Can you tell me what I'm doing wrong?
Code:
var storetest = Ext.create('Ext.data.Store', {
fields: ['name', 'data1', 'data2', 'data3', 'data4', 'data5'],
data: [
{ 'name': 1, 'data1': 10},
{ 'name': 2, 'data1': 7},
{ 'name': 3, 'data1': 5},
{ 'name': 4, 'data1': 2},
{ 'name': 5, 'data1': 4}
]
});
var graphtest = Ext.create('Ext.chart.Chart', {
width: 500,
height: 300,
animate: true,
store: storetest,
axes: [
{
type: 'Numeric',
position: 'left',
fields: ['data1'],
label: {
renderer: Ext.util.Format.numberRenderer('0,0')
},
title: 'Sample Values',
grid: true,
minimum: 0
},
{
type: 'Numeric',
position: 'bottom',
fields: ['name'],
title: 'Sample Metrics'
}
],
series: [
{
type: 'line',
axis: 'left',
xField: 'name',
yField: 'data1',
fill: true
}
]
});