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?
i have the same issue on stockapp example, i want to add values to the chart on runtime
i successfully add to the store but the chart never display the new added values
i use this line to add to the store
Ext.getStore('Apple').add({date:datevar,open: 583.4, high:590, low:583.1, close:587.41,volume: 12896200,adjClose: 587.41});
and i check the record is added by this
console.log("count"+Ext.getStore('Apple').getCount( ));
and it is added successfully
and when i call Ext.getStore('Apple').refresh(); it throws Uncaught TypeError: Object [object Object] has no method 'refresh'