<chart>

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

bottomMargin (default: 10)

The blank space bordering the bottom of the chart area.

 
dataPointsEnabled (default: false)

enable data point(data marker)

 
databorderEnabled (default: true)
 
datalabelColumn

data column name of the data label

 
datalabelEnabled (default: false)

enable data label

 
datatipColumn

data column name of the tooltip

 
datatipEnabled (default: false)

enable tooltip for data

 
defaultRightMargin (default: 10)

The default blank space bordering the right side of the chart area.

 
defaultstyle

The default style to be applied to the chart.

 
horizontalGap (default: 5)

The horizontal blank space between components.

 
initdone (default: false)

subview have

 
leftMargin (default: 10)

The blank space bordering the left side of the chart area.

 
rightMargin (default: 10)

The blank space bordering the right side of the chart area.

 
topMargin (default: 10)

The blank space bordering the top of the chart area.

 
valuelinesenabled (default: true)

enable value lines

 
valuepointsenabled (default: true)

enable value points

 
valueregionsenabled (default: true)

enable value region

 
verticalGap (default: 5)

The vertical blank space between components.

 
zoomEnabled

enable zoom

 

Methods

adjustPlotAreaToLayout ()
Adjust the plot area to the dimensions of the chart and other components
 
getDataSeries ()
get the dataseries
 
getNodeOfClass (className)
return a subnode with the class name
Parameters:
className (string) - name of the class
 
getNodesOfClass (className)
return an array of subnodes with the class name
Parameters:
className (string) - name of the class
 
render ()
Method that renders the chart. This method is overridden by class rectangularchart. The class piechart uses it as is.