<chart>
a simple chart

JavaScript: lz.chart
extends <basecomponent> » <view> » <node> » lz.Eventable »
[Warning] Warning
This component is of Beta quality and is subject to change.
chart is the base class representing a chart. In general, this class is not instantiated directly. A chart contains at least one dataseries element at least one axis element The chart needs to look at its dataseries children and pass the relevant dataseries to each axis. Relevent dataseries for the chart must have columns for each of the axes that the chart cares about.

Attributes

Name Type (tag) Type (js) Default Category
bottomMargin number Number 10 read/write
  The blank space bordering the bottom of the chart area.
databorderEnabled boolean boolean true read/write
   
datalabelColumn string String   read/write
  data column name of the data label
datalabelEnabled boolean boolean false read/write
  enable data label
dataPointsEnabled boolean boolean false read/write
  enable data point(data marker)
datatipColumn string String   read/write
  data column name of the tooltip
datatipEnabled boolean boolean false read/write
  enable tooltip for data
defaultRightMargin number Number 10 read/write
  The default blank space bordering the right side of the chart area.
defaultstyle expression any defaultchartstyle read/write
  The default style to be applied to the chart.
horizontalGap number Number 5 read/write
  The horizontal blank space between components.
initdone boolean boolean false read/write
  subview have
leftMargin number Number 10 read/write
  The blank space bordering the left side of the chart area.
rightMargin number Number 10 read/write
  The blank space bordering the right side of the chart area.
topMargin number Number 10 read/write
  The blank space bordering the top of the chart area.
valuelinesenabled boolean boolean true read/write
  enable value lines
valuepointsenabled boolean boolean true read/write
  enable value points
valueregionsenabled boolean boolean true read/write
  enable value region
verticalGap number Number 5 read/write
  The vertical blank space between components.
zoomEnabled boolean boolean false read/write
  enable zoom

Methods

adjustPlotAreaToLayout()
chart.adjustPlotAreaToLayout();
Adjust the plot area to the dimensions of the chart and other components

getDataSeries()
chart.getDataSeries();
get the dataseries

getNodeOfClass()
chart.getNodeOfClass(className : string);
return a subnode with the class name
Parameter Name Type Description
className string name of the class

getNodesOfClass()
chart.getNodesOfClass(className : string);
return an array of subnodes with the class name
Parameter Name Type Description
className string name of the class

render()
chart.render();
Method that renders the chart. This method is overridden by class rectangularchart. The class piechart uses it as is.

renderPlotArea()
chart.renderPlotArea();

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy