root / trunk / web / dojo / dojox / charting / Series.js @ 10
History | View | Annotate | Download (813 Bytes)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
4 | see: http://dojotoolkit.org/license for details
|
||
5 | */
|
||
6 | |||
7 | |||
8 | if(!dojo._hasResource["dojox.charting.Series"]){ |
||
9 | dojo._hasResource["dojox.charting.Series"]=true; |
||
10 | dojo.provide("dojox.charting.Series");
|
||
11 | dojo.require("dojox.charting.Element");
|
||
12 | dojo.declare("dojox.charting.Series",dojox.charting.Element,{constructor:function(_1,_2,_3){ |
||
13 | dojo.mixin(this,_3);
|
||
14 | if(typeof this.plot!="string"){ |
||
15 | this.plot="default"; |
||
16 | } |
||
17 | this.update(_2);
|
||
18 | },clear:function(){ |
||
19 | this.dyn={};
|
||
20 | },update:function(_4){ |
||
21 | if(dojo.isArray(_4)){
|
||
22 | this.data=_4;
|
||
23 | }else{
|
||
24 | this.source=_4;
|
||
25 | this.data=this.source.data; |
||
26 | if(this.source.setSeriesObject){ |
||
27 | this.source.setSeriesObject(this); |
||
28 | } |
||
29 | } |
||
30 | this.dirty=true; |
||
31 | this.clear();
|
||
32 | }}); |
||
33 | } |