Thank you for reporting this bug. We will make it our priority to review this report.
-
Ext JS Premium Member
[FIXED] Chart - Line - Numeric Axes - problem
With ext-4.0-pr2 no dots and lines are plotted for
Code:
Ext.require('Ext.chart.*');
Ext.require(['Ext.Window', 'Ext.fx.target.Sprite', 'Ext.layout.container.Fit']);
Ext.onReady(function () {
Ext.regModel('Plot', {
fields: [
{name: 'x', type: 'float'},
{name: 'y', type: 'float'}
]
});
var store = new Ext.data.Store({
model: 'Plot',
data : [
{x:10.1, y:6.0},
{x:11.4, y:2.0},
{x:11.6, y:4.0},
{x:12.0, y:2.0},
{x:29.8, y:0.0}
]
});
var win = Ext.create('Ext.Window', {
width: 1600,
height: 1000,
hidden: false,
maximizable: true,
renderTo: Ext.getBody(),
layout: 'fit',
items: {
xtype: 'chart',
store: store,
axes: [{
type: 'Numeric',
position: 'left',
minorUnit: 0.1,
fields: [ 'y']
}, {
type: 'Numeric',
position: 'bottom',
fields: ['x']
}],
series: [{
type: 'line',
axis: 'left',
xField: 'x',
yField: 'y'
}
]
}
});
});
When changing the data to
Code:
data : [
{x:0.1, y:6.0},
{x:1.4, y:2.0},
{x:1.6, y:4.0},
{x:2.0, y:2.0},
{x:9.8, y:0.0}
]
dots and lines are plotted.
Any hints?
-
We're checking into this.
-
Sencha User
Hi,
Thanks for the info. I just checked with Chrome and Firefox both data sets and everything seems to be working fine. Could you provide more information about on which OS / Browser you're running the example (and if your problem persists)?
Thanks,
-
Sencha User
problems with Numeric X-axis
I'm having a similar problem with Numeric X-Axis. I tried the example above and also found that the chart shows not line data on Chrome and Firefox. And similarly, If i used the alternate data set, it works.
I've also tried using a 'int' data type for x-axis and removed the decimals from the data set and I get strange results.
-
Sencha User
problem solved
I updated from pr2 to pr4 and all good now.
cheers