PDA

View Full Version : Line Chart Store



chl.bnaa
27 Mar 2015, 6:51 AM
Hello,
I am trying to load store dynamically into a Line Chart. The store type im using is an array store.
I am encountering some issues in that the store is undefined, but the initialconfig can read the store.

Example:


initialConfig: Object
itemId: "Graph"
store: "GraphDataStore"


But my object is being sent with:

itemId: "Graph"
store: undefined

I select the data from a grid with a select event like this:


..
var graph = newpanel.down('#Graph');

graph.store.load({
params: {refid:refid},
callback: function(r,o,s){
if(s){
console.log(r);
console.log(o);
console.log(s);
}
}
});


Any help will be much appriciated!:)

chl.bnaa
31 Mar 2015, 1:24 AM
Forgot to add it to app.js Do'h.Problem solved.

Gary Schlosberg
1 Apr 2015, 4:39 AM
Glad to hear it's working now. Thanks for taking the time to post a follow-up.