Graph manages and contains series instances for a CartesianChart
instance.
_addSeriesseries
Adds a series to the graph.
series
CartesianSeries
Series to add to the graph.
_drawingCompleteHandlere
Event handler for series drawingComplete event.
e
Object
Event object.
_drawSeriesDraws each series.
_getDefaultStylesGets the default value for the styles attribute. Overrides
base implementation.
_getSeriestype
Returns a specific CartesianSeries class based on key value from a look up table of a direct reference to a class. When specifying a key value, the following options
are available:
Key ValueClass lineY.LineSeries columnY.ColumnSeries barY.BarSeries areaY.AreaSeries stackedareaY.StackedAreaSeries stackedlineY.StackedLineSeries stackedcolumnY.StackedColumnSeries stackedbarY.StackedBarSeries markerseriesY.MarkerSeries splineY.SplineSeries areasplineY.AreaSplineSeries stackedsplineY.StackedSplineSeries stackedareasplineY.StackedAreaSplineSeries stackedmarkerseriesY.StackedMarkerSeries pieY.PieSeries comboY.ComboSeries stackedcomboY.StackedComboSeries combosplineY.ComboSplineSeries stackedcombosplineY.StackedComboSplineSeries
When referencing a class directly, you can specify any of the above classes or any custom class that extends CartesianSeries or PieSeries.
_markerEventHandlere
Event handler for marker events.
e
Object
Event object.
_parseSeriesCollectionCollection
Parses series instances to be displayed in the graph.
Collection
Array
of CartesianSeries instances or objects container CartesianSeries attributes values.
_updateStylesUpdates the Graph styles.
addDispatcherval
Adds dispatcher to a _dispatcher used to
to ensure all series have redrawn before for firing event.
val
CartesianSeries
series instance to add
bindUIcreateSeriesseriesData
Creates a CartesianSeries instance from an object containing attribute key value pairs. The key value pairs include attributes for the specific series and a type value which defines the type of
series to be used.
seriesData
Object
Series attribute key value pairs.
destructorDestructor implementation Graph class. Removes all Graphic instances from the widget.
getSeriesByIndexval
Returns a series instance based on an index.
val
Number
index of the series
getSeriesByKeyval
Returns a series instance based on a key value.
val
String
key value of the series
syncUIbackgroundReference to graphic instance used for the background.
backgroundChange
Fires when the value for the configuration attribute background 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
chartReference to the chart instance using the graph.
chartChange
Fires when the value for the configuration attribute chart 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
graphicReference to graphic instance used for series.
graphicChange
Fires when the value for the configuration attribute graphic 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
gridlinesReference to graphic instance used for gridlines.
gridlinesChange
Fires when the value for the configuration attribute gridlines 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
groupMarkersIndicates 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
horizontalGridlinesReference to the horizontal Gridlines instance.
Default: null
horizontalGridlinesChange
Fires when the value for the configuration attribute horizontalGridlines 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
seriesCollectionCollection of series. When setting the seriesCollection the array can contain a combination of either
CartesianSeries instances or object literals with properties that will define a series.
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
seriesDictionaryRead-only hash lookup for all series on in the Graph.
seriesDictionaryChange
Fires when the value for the configuration attribute seriesDictionary 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
showBackgroundIndicates whether the Graph has a background.
Default: true
showBackgroundChange
Fires when the value for the configuration attribute showBackground 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
stylesStyle properties used for drawing a background. Below are the default values:
stylesChange
Fires when the value for the configuration attribute styles 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
verticalGridlinesReference to the vertical Gridlines instance.
Default: null
verticalGridlinesChange
Fires when the value for the configuration attribute verticalGridlines 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
xThe x-coordinate for the graph.
xChange
Fires when the value for the configuration attribute x 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
yThe y-coordinate for the graph.
yChange
Fires when the value for the configuration attribute y 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