Threaded View

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    3
    Vote Rating
    0
    bob_and_ted is on a distinguished road

      0  

    Default Answered: Reload chart datastore

    Answered: Reload chart datastore


    Using Beta 2.1 with charts.

    I'm using a simple data store that generates random data. I would like to refresh my line chart with this data, but so far had no success in this. I have tried:

    Ext.getStore('mystore').load();

    But nothing happens on my chart at all. However, this is working:

    Ext.getStore('mystore').removeAll();

    Great, so I can remove all the data from the chart. But how can I load it again and refresh the chart?

    Thanks,

  2. Try adding something like this inside your store definition:

    refresh : function()
    {
    // Generate a fresh set of random values for display on the chart
    var newData = generateData(5,1);

    // Update this store's data field, which will cause a chart refresh
    this.setData(newData);
    }

    Then hook up a UI button to call this refresh method:

    var store = Ext.getStore('myStore');
    store.refresh();

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi