Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7889 in 4.2.1.883.
  1. #1
    Ext JS Premium Member gevik's Avatar
    Join Date
    May 2009
    Location
    The Netharlands
    Posts
    265
    Vote Rating
    8
    gevik will become famous soon enough

      1  

    Default Scatter Chart Broken (possible bug) [4.1.3]

    Scatter Chart Broken (possible bug) [4.1.3]


    It seems that the scatter chart is broken when the store that it binds to loads the records on a later moment.

    The problem is that you assume the store has already loaded records by the time the chart is drawn.
    Well, this is not usually the case. Most of the time you bind the chart to an empty store and then by user interaction, you load the data from the database, after that you expect the chart to draw itself.

    I have traced the problem to the to "src/chart/series/Scanner.js"->drawSeries.

    How to reproduce the behaviour:
    [1] Start with the same example as provided in the docs.
    http://ext4yii.local/dev/extjs/extjs-4.1.3/docs/index.html#!/api/Ext.chart.series.Scatter

    [
    2] Make sure that there are no records in the store, by setting : data:[]

    [3] Load some record later using your debugger console by: store.loadData(.....)
    You can use the same data from the example.

    The same problem shows up when the store loads the data from a remote location later.

    Solution:

    In src/chart/series/Scanner.js"->drawSeries, the blocks from line 363 to 372 should be the other way around.
    Code:
    CURRENT-----------------------------------
    
            endMarkerStyle = Ext.apply(me.markerStyle, me.markerConfig);
            type = endMarkerStyle.type;
            delete endMarkerStyle.type;
    
    
            //if the store is empty then there's nothing to be rendered
            if (!store || !store.getCount()) {
                me.hide();
                me.items = [];
                return;
            }
    POSSIBLE FIX --------------------------------
    
            //if the store is empty then there's nothing to be rendered
            if (!store || !store.getCount()) {
                me.hide();
                me.items = [];
                return;
            }
    
            endMarkerStyle = Ext.apply(me.markerStyle, me.markerConfig);
            type = endMarkerStyle.type;
            delete endMarkerStyle.type;

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,732
    Vote Rating
    756
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2013
    Posts
    21
    Vote Rating
    0
    yateam is on a distinguished road

      0  

    Default


    Any update on this one?

    gevik's workaround does not help when switching on/off the series (by clicking on the legend).I get the following error: Uncaught TypeError: Property 'undefined' of object [object Object] is not a function LegendItem.js:182

    That is because markerStyle.type does not exist (deleted in Scatter.js#drawSeries)

    Ext JS 4.2.2

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar