View Full Version : [FIXED] Chart - Line - Numeric Axes - problem

27 Feb 2011, 12:49 AM
With ext-4.0-pr2 no dots and lines are plotted for

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

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?

Jamie Avins
28 Feb 2011, 8:10 AM
We're checking into this.

7 Mar 2011, 2:17 PM

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)?


16 Mar 2011, 12:57 AM
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.

16 Mar 2011, 1:26 AM
I updated from pr2 to pr4 and all good now.