//>>built
define("dojox/charting/StoreSeries",["dojo/_base/array","dojo/_base/declare","dojo/_base/Deferred"],function(g,h,k){return h("dojox.charting.StoreSeries",null,{constructor:function(e,f,b){this.store=e;this.kwArgs=f;this.value=b?"function"==typeof b?b:"object"==typeof b?function(a){var d={},c;for(c in b)d[c]=a[b[c]];return d}:function(a){return a[b]}:function(a){return a.value};this.data=[];this._initialRendering=!0;this.fetch()},destroy:function(){this.observeHandle&&this.observeHandle.remove()},
setSeriesObject:function(e){this.series=e},fetch:function(e,f){function b(){a.data=g.map(a.objects,function(c){return a.value(c,a.store)});a._pushDataChanges()}var a=this;this.observeHandle&&this.observeHandle.remove();var d=this.store.query(e||this.kwArgs.query,f||this.kwArgs);k.when(d,function(c){a.objects=c;b()});d.observe&&(this.observeHandle=d.observe(b,!0))},_pushDataChanges:function(){this.series&&(this.series.chart.updateSeries(this.series.name,this,this._initialRendering),this._initialRendering=
!1,this.series.chart.delayedRender())}})});