Creates a Stacked Area Chart. The stacked area chart is useful when displaying multiple aggregated layers of information.
As with all other series, the Area Series must be appended in the *series* Chart array configuration. See the Chart
documentation for more information. A typical configuration object for the area series could be:
series: [{
type: 'area',
highlight: true,
axis: 'left',
xField: 'name',
yField: ['data1', 'data2', 'data3', 'data4', 'data5', 'data6', 'data7'],
style: {
opacity: 0.93
}
}]
In this configuration we set `area` as the type for the series, set highlighting options to true for highlighting elements on hover,
take the left axis to measure the data in the area series, set as xField (x values) the name field of each element in the store,
and as yFields (aggregated layers) seven data fields from the same store. Then we override some theming styles by adding some opacity
to the style object.
An (optional) object with event callbacks. All event callbacks get the target *item* as first parameter. The callback...
An (optional) object with event callbacks. All event callbacks get the target *item* as first parameter. The callback functions are:
- itemmouseover
- itemmouseout
- itemmousedown
- itemmouseup
A function that can be overridden to set custom styling properties to each rendered element.
Passes in (sprite, recor...
A function that can be overridden to set custom styling properties to each rendered element.
Passes in (sprite, record, attributes, index, store) to the function.
An array with shadow attributes
An array with shadow attributes
Whether to show this series in the legend.
Whether to show this series in the legend.
Append styling properties to this object for it to override theme properties.
Append styling properties to this object for it to override theme properties.
The human-readable name of the series.
The human-readable name of the series.
The type of series. Set in subclasses.
The type of series. Set in subclasses.
Indicates which axis the series will bind to
Indicates which axis the series will bind to
The field used to access the x axis value from the items from the data
source.
The field used to access the x axis value from the items from the data
source.
The field used to access the y-axis value from the items from the data
source.
The field used to access the y-axis value from the items from the data
source.
Draws the series for the current chart.
Draws the series for the current chart.
For a given x/y point relative to the Surface, find a corresponding item from this
series, if any.
For a given x/y point relative to the Surface, find a corresponding item from this
series, if any.
Parameters
Returns
- Object An object with the item found or null instead.
Returns the color of the series (to be displayed as color for the series legend item).
Returns the color of the series (to be displayed as color for the series legend item).
Parameters
Returns
Hides all the elements in the series.
Hides all the elements in the series.
Highlight the specified item. If no item is provided the whole series will be highlighted.
Highlight the specified item. If no item is provided the whole series will be highlighted.
Parameters
Returns
Highlight this entire series.
Highlight this entire series.
Parameters
Returns
Shows all the elements in the series.
Shows all the elements in the series.
un-highlights the specified item. If no item is provided it will un-highlight the entire series.
un-highlights the specified item. If no item is provided it will un-highlight the entire series.
Parameters
Returns
UnHighlight this entire series.
UnHighlight this entire series.
Parameters
Returns