Sencha Documentation

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.

Config Options

 
listeners : 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
 
renderer : Function
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
 
showInLegend : Boolean
Whether to show this series in the legend.
Whether to show this series in the legend.
 
style : Object
Append styling properties to this object for it to override theme properties.
Append styling properties to this object for it to override theme properties.
 
title : String
The human-readable name of the series.
The human-readable name of the series.
 
type : String
The type of series. Set in subclasses.
The type of series. Set in subclasses.

Properties

 
axis : String
Indicates which axis the series will bind to
Indicates which axis the series will bind to
 
xField : String
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.
 
yField : String
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.

Methods

 
drawSeries : Void
Draws the series for the current chart.
Draws the series for the current chart.
 
getItemForPoint( x {Number}, y {Number} ) : Object
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

  • {Number} : x
    The left pointer coordinate.
  • {Number} : y
    The top pointer coordinate.

Returns

  • Object   An object with the item found or null instead.
 
getLegendColor( item {Object} ) : Void
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

  • {Object} : item
    Info about the item; same format as returned by #getItemForPoint

Returns

  • Void
 
hideAll : Void
Hides all the elements in the series.
Hides all the elements in the series.
 
highlightItem( item {Object} ) : Void
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

  • {Object} : item
    Info about the item; same format as returned by #getItemForPoint

Returns

  • Void
 
highlightSeries( Object item ) : Void
Highlight this entire series.
Highlight this entire series.

Parameters

  • item : Object
    Info about the item; same format as returned by #getItemForPoint.

Returns

  • Void
 
showAll : Void
Shows all the elements in the series.
Shows all the elements in the series.
 
unHighlightItem( item {Object} ) : Void
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

  • {Object} : item
    Info about the item; same format as returned by #getItemForPoint

Returns

  • Void
 
unHighlightSeries( Object item ) : Void
UnHighlight this entire series.
UnHighlight this entire series.

Parameters

  • item : Object
    Info about the item; same format as returned by #getItemForPoint.

Returns

  • Void