Class PieChart
- extends ChartBase
The PieChart class creates a pie chart
Methods
private
void
_addAxes
(
)
private
void
_addSeries
(
)
private
void
_getDefaultAxes
(
)
private
void
_getSeriesCollection
(
)
private
void
_parseAxes
(
)
private
void
_parseSeriesAxes
(
)
private
void
_sizeChanged
(
)
void
getSeriesItem
(
series
,
index
)
Returns an object literal containing a categoryItem and a valueItem for a given series index.
- Parameters:
-
series
<object>
Reference to a series.
-
index
<object>
Index of the specified item within a series.
Methods inherited from ChartBase:
_addTooltip,
_dataProviderChangeHandler,
_getAxisClass,
_getGraph,
_getTooltip,
_markerEventDispatcher,
_planarLabelFunction,
_positionTooltip,
_setDataValues,
_setSeriesCollection,
_showTooltip,
_tooltipChangeHandler,
_tooltipLabelFunction,
_updateTooltip,
bindUI,
getAxisByKey,
getCategoryAxis,
getSeries,
hideTooltip,
renderUI,
toggleTooltip
Events
axesChange
(
event
)
Fires when the value for the configuration attribute 'axes' is changed. You can listen for the event using the
on method if you wish to be notified before the attribute's value has changed, or using the
after method if you wish to be notified after the attribute's value has changed.
- Parameters:
-
event
<Event.Facade>
An Event Facade object with the following attribute specific properties added: - prevVal
- The value of the attribute, prior to it being set
- newVal
- The value the attribute is to be set to
- attrName
- The name of the attribute being set
- subAttrName
- If setting a property within the attribute's value, the name of the sub-attribute property being set
seriesCollectionChange
(
event
)
Fires when the value for the configuration attribute 'seriesCollection' is changed. You can listen for the event using the
on method if you wish to be notified before the attribute's value has changed, or using the
after method if you wish to be notified after the attribute's value has changed.
- Parameters:
-
event
<Event.Facade>
An Event Facade object with the following attribute specific properties added: - prevVal
- The value of the attribute, prior to it being set
- newVal
- The value the attribute is to be set to
- attrName
- The name of the attribute being set
- subAttrName
- If setting a property within the attribute's value, the name of the sub-attribute property being set
typeChange
(
event
)
Fires when the value for the configuration attribute 'type' is changed. You can listen for the event using the
on method if you wish to be notified before the attribute's value has changed, or using the
after method if you wish to be notified after the attribute's value has changed.
- Parameters:
-
event
<Event.Facade>
An Event Facade object with the following attribute specific properties added: - prevVal
- The value of the attribute, prior to it being set
- newVal
- The value the attribute is to be set to
- attrName
- The name of the attribute being set
- subAttrName
- If setting a property within the attribute's value, the name of the sub-attribute property being set
Events inherited from ChartBase:
axesCollectionChange,
categoryKeyChange,
categoryTypeChange,
dataProviderChange,
graphChange,
interactionTypeChange,
markerEvent:click,
markerEvent:mousedown,
markerEvent:mouseout,
markerEvent:mouseover,
markerEvent:mouseup
seriesKeysChange
tooltipChange
Configuration Attributes
axes
- Object
Axes to appear in the chart.
Collection of series to appear on the chart. This can be an array of Series instances or object literals
used to describe a Series instance.
type
- String
Type of chart when there is no series collection specified.
Configuration attributes inherited from ChartBase: