<dataseries>

JavaScript: lz.dataseries
extends <view> » <node> » lz.Eventable »
[Warning] Warning
This component is of Beta quality and is subject to change.
A dataseries in a container for dataseries and datacolumn. dataseries can be nested.

Attributes

Name Type (tag) Type (js) Default Category
enabled expression any true read/write
  enable the dataseries
label html lz.html   read/write
  label of the dataseries

Methods

addDataColumn()
dataseries.addDataColumn(args : object);
add a child datacolumn
Parameter Name Type Description
args object args to pass in to create. It is ok to be null

addDataSeries()
dataseries.addDataSeries(args : object);
add a child datasereis
Parameter Name Type Description
args object args to pass in to create dataseries. it is ok to be null

clearCache()
dataseries.clearCache();
clear the cache of datacolumns for the dataseries

getDataColumn()
dataseries.getDataColumn(name : string);
return a datacolumn
Parameter Name Type Description
name string name of the datacolumn

getDataSeries()
dataseries.getDataSeries(index : Number);
get the dataseries of the index
Parameter Name Type Description
index Number the index of a leaf node dataseries

getDataSeriesLeafs()
dataseries.getDataSeriesLeafs();
get an array of leaf node dataseries

getLegend()
dataseries.getLegend();
return xml data require for the legend

getNestedAttribute()
dataseries.getNestedAttribute(attName : String);
get a attribute that is of the current class or inherited from the parent.
Parameter Name Type Description
attName String the name of the attribute

getNumDataSeries()
dataseries.getNumDataSeries();
get the number of leaf node dataseries

getRootDataSeries()
dataseries.getRootDataSeries();
get the top level

removeDataColumn()
dataseries.removeDataColumn(child : object);
remove child datacolumn
Parameter Name Type Description
child object child datacolumn

removeDataSeries()
dataseries.removeDataSeries(child : object);
remove child dataseries
Parameter Name Type Description
child object child dataseries

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy