Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
May be what you are looking for is the pipeTree() method. You still need to create 5 datastores but all datastores generated from same source. Meaning you do not need to query again.
Hi, thank you for your answer. I thought something different. My case: I need to show 5 graphs on the same page. Each graph: looks & and is the same (number of columns, style), has the same dataSource, but shows different data range from the same table. I have to create 5 dataStore(s) to handle different data (make sanse) and 5 the same looking graph definitions in view file (just because of those 5 dataStore(s). What do I look for: is there any change to have something like graph template I just fill with data? thanks!
Okay, another way is to use dataStore filter. For example, you store your data in a datastore
$this->dataStore("main"), you can do filter for each chart like this
ColumnChart::create(array( "dataSource"=>$this->dataStore("main")->filter("date","between","2010-01-01","2010-03-01"); ));
more on filter().
Hope that helps.