Sencha Documentation

Common base class for series implementations which plot values using x/y coordinates.

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.
 
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

 
getItemForPoint( Number x, Number y ) : 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

  • x : Number
  • y : Number

Returns

  • Object   An object describing the item, or null if there is no matching item. The exact contents of this object will vary by series type, but should always contain at least the following:
    • {Ext.chart.series.Series} series - the Series object to which the item belongs
    • {Object} value - the value(s) of the item's data point
    • {Array} point - the x/y coordinates relative to the chart box of a single point for this data item, which can be used as e.g. a tooltip anchor point.
    • {Ext.draw.Sprite} sprite - the item's rendering Sprite.
 
Returns a string with the color to be used for the series legend item.
Returns a string with the color to be used for the series legend item.
 
hideAll : Void
Hides all the elements in the series.
Hides all the elements in the series.
 
showAll : Void
Shows all the elements in the series.
Shows all the elements in the series.