The PieChart class creates a pie chart
_addTooltipInherited from
ChartBase:
charts/js/ChartBase.js:969
Adds a tooltip to the dom.
_buildSeriesKeysdataProvider
Inherited from
ChartBase:
charts/js/ChartBase.js:1297
Constructs seriesKeys if not explicitly specified.
dataProvider
Array
The dataProvider for the chart.
Array
_dataProviderChangeHandlere
Inherited from
ChartBase:
charts/js/ChartBase.js:848
Event handler for dataProviderChange.
e
Object
Event object.
_getAllKeysdp
Inherited from
ChartBase:
charts/js/ChartBase.js:1269
Returns all the keys contained in a dataProvider.
dp
Array
Collection of objects to be parsed.
Object
_getAriaMessagekey
Defined in
charts/js/PieChart.js:328
Returns the appropriate message based on the key press.
key
Number
The keycode that was pressed.
String
_getAxisClasst
Inherited from
ChartBase:
charts/js/ChartBase.js:463
Helper method that returns the axis class that a key references.
t
String
The type of axis.
Axis
_getDefaultAxes
Defined in
charts/js/PieChart.js:209
Generates and returns a key-indexed object containing Axis instances or objects used to create Axis instances.
Object
_getGraphInherited from
ChartBase:
charts/js/ChartBase.js:308
Default value function for the Graph attribute.
Graph
_getSeriesCollection
Defined in
charts/js/PieChart.js:10
Calculates and returns a seriesCollection.
Array
_getTooltipInherited from
ChartBase:
charts/js/ChartBase.js:1048
Default getter for tooltip attribute.
Object
_groupMarkersChangeHandlere
Inherited from
ChartBase:
charts/js/ChartBase.js:275
Handles groupMarkers change event.
e
Object
Event object.
_itemRenderede
Inherited from
ChartBase:
charts/js/ChartBase.js:292
Handler for itemRendered event.
e
Object
Event object.
_markerEventDispatchere
Inherited from
ChartBase:
charts/js/ChartBase.js:707
Event handler for marker events.
e
Object
Event object.
_parseAxesval
Defined in
charts/js/PieChart.js:52
Creates Axis instances.
val
Object
Object containing Axis instances or objects in which to construct Axis instances.
Object
_parseSeriesAxesc
Defined in
charts/js/PieChart.js:164
Parse and sets the axes for the chart.
c
Array
A collection PieSeries instance.
_planarLabelFunctioncategoryAxis
valueItems
index
seriesArray
seriesIndex
Inherited from
ChartBase:
charts/js/ChartBase.js:1101
Formats tooltip text when interactionType is planar.
categoryAxis
Axis
Reference to the categoryAxis of the chart.
valueItems
Array
Array of objects for each series that has a data point in the coordinate plane of the event. Each object contains the following data:
index
Number
The index of the item within its series.
seriesArray
Array
Array of series instances for each value item.
seriesIndex
Number
The index of the series in the seriesCollection.
_positionTooltipe
Inherited from
ChartBase:
charts/js/ChartBase.js:932
Positions the tooltip
e
Object
Event object.
_setAriaElementscb
Inherited from
ChartBase:
charts/js/ChartBase.js:532
Creates an aria live-region, aria-label and aria-describedby for the Chart.
cb
Node
Reference to the Chart's contentBox attribute.
_setDataValuesval
Inherited from
ChartBase:
charts/js/ChartBase.js:410
Setter method for dataProvider attribute.
val
Array
Array to be set as dataProvider.
Array
_setOffscreenInherited from
ChartBase:
charts/js/ChartBase.js:562
Sets a node offscreen for use as aria-description or aria-live-regin.
Node
_setTextlabel
val
Inherited from
ChartBase:
charts/js/ChartBase.js:1242
Updates the content of text field. This method writes a value into a text field using
appendChild. If the value is a String, it is converted to a TextNode first.
label
HTMLElement
label to be updated
val
String
value with which to update the label
_showTooltipmsg
x
y
Inherited from
ChartBase:
charts/js/ChartBase.js:909
Shows a tooltip
_sizeChangede
Defined in
charts/js/PieChart.js:258
Handler for sizeChanged event.
e
Object
Event object.
_tooltipChangeHandlere
Inherited from
ChartBase:
charts/js/ChartBase.js:1217
Event handler for the tooltipChange.
e
Object
Event object.
_tooltipLabelFunctioncategoryItem
valueItem
itemIndex
series
Inherited from
ChartBase
but overwritten in
charts/js/PieChart.js:290
Formats tooltip text for a pie chart.
categoryItem
Object
An object containing the following:
valueItem
Object
An object containing the following:
itemIndex
Number
The index of the item within the series.
series
CartesianSeries
The PieSeries instance of the item.
_updateTooltipval
Inherited from
ChartBase:
charts/js/ChartBase.js:990
Updates the tooltip attribute.
val
Object
Object containing properties for the tooltip.
Object
_wereSeriesKeysExplicitlySetInherited from
ChartBase:
charts/js/ChartBase.js:260
Utility method to determine if seriesKeys was explicitly provided
(for example during construction, or set by the user), as opposed to
being derived from the dataProvider for example.
boolean true if the seriesKeys attribute was explicitly set.
destructor
Defined in
charts/js/PieChart.js:384
Destructor implementation for the PieChart class.
getAxisByKeyval
Inherited from
ChartBase:
charts/js/ChartBase.js:352
Returns an Axis instance by key reference. If the axis was explicitly set through the axes attribute,
the key will be the same as the key used in the axes object. For default axes, the key for
the category axis is the value of the categoryKey (category). For the value axis, the default
key is values.
val
String
Key reference used to look up the axis.
Axis
getCategoryAxisInherited from
ChartBase:
charts/js/ChartBase.js:373
Returns the category axis for the chart.
Axis
getSeriesval
Inherited from
ChartBase:
charts/js/ChartBase.js:327
Returns a series instance by index or key value.
val
Object
CartesianSeries
getSeriesItemseries
index
Defined in
charts/js/PieChart.js:233
Returns an object literal containing a categoryItem and a valueItem for a given series index.
Object
toggleTooltipe
Inherited from
ChartBase:
charts/js/ChartBase.js:889
Event listener for toggling the tooltip. If a tooltip is visible, hide it. If not, it will create and show a tooltip based on the event object.
e
Object
Event object.
_axisClassInherited from
ChartBase:
charts/js/ChartBase.js:476
Key value pairs of axis types.
_dataProviderInherited from
ChartBase:
charts/js/ChartBase.js:401
Storage for the dataProvider attribute.
_directionInherited from
ChartBase:
charts/js/ChartBase.js:391
Default direction of the chart.
Default: horizontal
_seriesCollectionInherited from
ChartBase:
charts/js/ChartBase.js:443
Storage for seriesCollection attribute.
_setSeriesCollectionInherited from
ChartBase:
charts/js/ChartBase.js:452
Setter method for seriesCollection attribute.
val
Array
Array of either CartesianSeries instances or objects containing series attribute key value pairs.
ariaDescriptionInherited from
ChartBase
but overwritten in
charts/js/PieChart.js:434
Sets the aria description for the chart.
ariaDescriptionChange
Fires when the value for the configuration attribute ariaDescription 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.
e
EventFacade
ariaLabelInherited from
ChartBase:
charts/js/ChartBase.js:67
Sets the aria-label for the chart.
ariaLabelChange
Fires when the value for the configuration attribute ariaLabel 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.
e
EventFacade
axes
Defined in
charts/js/PieChart.js:453
Axes to appear in the chart.
axesChange
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.
e
EventFacade
axesCollectionInherited from
ChartBase:
charts/js/ChartBase.js:229
Reference to all the axes in the chart.
axesCollectionChange
Fires when the value for the configuration attribute axesCollection 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.
e
EventFacade
categoryKeyInherited from
ChartBase:
charts/js/ChartBase.js:185
The key value used for the chart's category axis.
Default: category
categoryKeyChange
Fires when the value for the configuration attribute categoryKey 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.
e
EventFacade
categoryTypeInherited from
ChartBase:
charts/js/ChartBase.js:196
Indicates the type of axis to use for the category axis.
CategoryAxis.Default: category
categoryTypeChange
Fires when the value for the configuration attribute categoryType 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.
e
EventFacade
dataProviderInherited from
ChartBase:
charts/js/ChartBase.js:11
Data used to generate the chart.
dataProviderChange
Fires when the value for the configuration attribute dataProvider 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.
e
EventFacade
graphInherited from
ChartBase:
charts/js/ChartBase.js:237
Reference to graph instance.
graphChange
Fires when the value for the configuration attribute graph 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.
e
EventFacade
groupMarkersInherited from
ChartBase:
charts/js/ChartBase.js:247
Indicates whether or not markers for a series will be grouped and rendered in a single complex shape instance.
groupMarkersChange
Fires when the value for the configuration attribute groupMarkers 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.
e
EventFacade
interactionTypeInherited from
ChartBase:
charts/js/ChartBase.js:212
Indicates the the type of interactions that will fire events.
Default: marker
interactionTypeChange
Fires when the value for the configuration attribute interactionType 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.
e
EventFacade
seriesCollection
Defined in
charts/js/PieChart.js:471
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.
seriesCollectionChange
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.
e
EventFacade
seriesKeysInherited from
ChartBase:
charts/js/ChartBase.js:41
A collection of keys that map to the series axes. If no keys are set, they will be generated automatically depending on the data structure passed into the chart.
seriesKeysChange
Fires when the value for the configuration attribute seriesKeys 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.
e
EventFacade
tooltipInherited from
ChartBase:
charts/js/ChartBase.js:106
Reference to the default tooltip available for the chart.
Contains the following properties:
CartesianSeries instance of the item.seriesCollection.HTMLElement which is written into the DOM using appendChild. If you override this method and choose
to return an html string, you will also need to override the tooltip's setTextFunction method to accept an html string.
CategoryAxis Reference to the categoryAxis of the chart.
seriesCollection.HTMLElement which is written into the DOM using appendChild. If you override this method and choose
to return an html string, you will also need to override the tooltip's setTextFunction method to accept an html string.
planarLabelFunction or markerLabelFunction into the
the tooltip node. Has the following signature:
HTMLElement that the content is to be added.String or HTMLElement. If an HTML string is used,
it will be rendered as a string.tooltipChange
Fires when the value for the configuration attribute tooltip 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.
e
EventFacade
type
Defined in
charts/js/PieChart.js:492
Type of chart when there is no series collection specified.
typeChange
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.
e
EventFacade
markerEvent:clickInherited from
ChartBase:
charts/js/ChartBase.js:812
Broadcasts when interactionType is set to marker and a series marker has received a click event.
e
EventFacade
Event facade with the following additional properties:
Axis.Axis.order of the marker's series.markerEvent:mousedownInherited from
ChartBase:
charts/js/ChartBase.js:776
Broadcasts when interactionType is set to marker and a series marker has received a mousedown event.
e
EventFacade
Event facade with the following additional properties:
Axis.Axis.order of the marker's series.markerEvent:mouseoutInherited from
ChartBase:
charts/js/ChartBase.js:758
Broadcasts when interactionType is set to marker and a series marker has received a mouseout event.
e
EventFacade
Event facade with the following additional properties:
Axis.Axis.order of the marker's series.markerEvent:mouseoverInherited from
ChartBase:
charts/js/ChartBase.js:739
Broadcasts when interactionType is set to marker and a series marker has received a mouseover event.
e
EventFacade
Event facade with the following additional properties:
Axis.Axis.order of the marker's series.markerEvent:mouseupInherited from
ChartBase:
charts/js/ChartBase.js:794
Broadcasts when interactionType is set to marker and a series marker has received a mouseup event.
e
EventFacade
Event facade with the following additional properties:
Axis.Axis.order of the marker's series.