Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Germany, Frankfurt
    Posts
    142
    Vote Rating
    1
    enpasos is on a distinguished road

      0  

    Default [FIXED] Chart - Line - Numeric Axes - problem

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

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    We're checking into this.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    168
    Vote Rating
    0
    philogb is on a distinguished road

      0  

    Default


    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,

  4. #4
    Sencha User
    Join Date
    May 2010
    Posts
    6
    Vote Rating
    0
    eatinker is on a distinguished road

      0  

    Default problems with Numeric X-axis

    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.

  5. #5
    Sencha User
    Join Date
    May 2010
    Posts
    6
    Vote Rating
    0
    eatinker is on a distinguished road

      0  

    Default problem solved

    problem solved


    I updated from pr2 to pr4 and all good now.

    cheers

Similar Threads

  1. Replies: 2
    Last Post: 3 Mar 2011, 5:55 PM
  2. [OPEN] [CLOSED]Chart Numeric Axes label customization
    By margozzi in forum Ext:Bugs
    Replies: 2
    Last Post: 24 Feb 2011, 11:02 AM
  3. Chart with 2 axes
    By newbie20110112 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 12 Jan 2011, 1:58 PM
  4. Chart object with 2 Y-axes on different scales
    By jtpacheco in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 7 Jul 2010, 7:41 AM
  5. Setting the Line Chart Numeric Axis Range
    By GoneIn20Seconds in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 2 Apr 2010, 8:13 AM

Thread Participants: 3