Hybrid View
-
20 Feb 2013 3:18 AM #1
Unanswered: candle stick char
Unanswered: candle stick char
hello,
i have a problem in candlestick chart example that i want to add on runtime more values to be displayed on the chart
i tried to add values to the chart store but it can not be displayed,the chart still as what is displayed on the first display.
this is what i did
Ext.getStore('Apple').add({date:1340953200000,open: 570.96,high: 587.89,low: 570.37,close: 585.78,volume:15729000,adjClose: 585.78});
also i tried to load the store and redraw the chart
Ext.getStore('Apple').load();
Ext.getCmp('mainChart').redraw();
but nothing happened
Ext.getStore('Apple').load();
Ext.getCmp('mainChart').redraw();
please help
-
21 Feb 2013 5:44 AM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,183
- Vote Rating
- 194
- Answers
- 433
Is the record there after you add?
console.log(store.getCount());
store.add(....
console.log(store.getCount());
If you call load, you are reloading old dataset.
Scott.
-
21 Feb 2013 6:08 AM #3
yes the record added successfully ,i am running
console.log(store.getCount());
after every addition but the chart never display any change
i removed store.load and also the same result
-
21 Feb 2013 6:27 AM #4Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,183
- Vote Rating
- 194
- Answers
- 433
What SDK are you using? Touch1, Touch2? You have several dupe posts, so it is unclear.
Scott.
-
21 Feb 2013 6:33 AM #5
i am using touch 2,, trying to edit in the stockapp example to add values to chart on the runtime
-
24 Feb 2013 11:40 PM #6
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote