PieChart Class
The PieChart class creates a pie chart
Item Index
Methods
Attributes
Methods
_addAxes
()
private
Adds axes to the chart.
_addSeries
()
private
Renders the Graph.
_getAriaMessage
-
key
Returns the appropriate message based on the key press.
Parameters:
-
keyNumberThe keycode that was pressed.
Returns:
_getDefaultAxes
()
private
Generates and returns a key-indexed object containing Axis instances or objects used to create Axis instances.
Returns:
_getSeriesCollection
()
private
Calculates and returns a seriesCollection.
Returns:
_parseAxes
-
val
Creates Axis instances.
Parameters:
-
valObjectObject containing
Axisinstances or objects in which to constructAxisinstances.
Returns:
_parseSeriesAxes
-
c
Parse and sets the axes for the chart.
Parameters:
-
cArrayA collection
PieSeriesinstance.
_redraw
()
private
Redraws the chart instance.
_sizeChanged
-
e
Handler for sizeChanged event.
Parameters:
-
eObjectEvent object.
_tooltipLabelFunction
-
categoryItem -
valueItem -
itemIndex -
series -
seriesIndex
Formats tooltip text for a pie chart.
Parameters:
-
categoryItemObjectAn object containing the following:
- axis
- The axis to which the category is bound.
- displayName
- The display name set to the category (defaults to key if not provided)
- key
- The key of the category.
- value
- The value of the category
-
valueItemObjectAn object containing the following:
- axis
- The axis to which the item's series is bound.
- displayName
- The display name of the series. (defaults to key if not provided)
- key
- The key for the series.
- value
- The value for the series item.
-
itemIndexNumberThe index of the item within the series.
-
seriesCartesianSeriesThe
PieSeriesinstance of the item. -
seriesIndexNumberThe index of the series in the
seriesCollection.
Returns:
getSeriesItem
-
series -
index
Returns an object literal containing a categoryItem and a valueItem for a given series index.
Parameters:
-
seriesObjectReference to a series.
-
indexObjectIndex of the specified item within a series.
