Clear Up
SharpKit Reference

Cartesian Class

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

Namespace: Ext.chart.series

Fields

Name Description
axis The position of the axis to bind the values to. Possible values are 'left', 'bottom', 'top' and 'right'. You must explicitly set this value to bind the values of the line series to the ones in the axis, otherwise a relative scale will be used. For example, if you're using a Scatter or Line series and you'd like to have the values in the chart relative to the bottom and left axes then axis should be ['left', 'bottom']. Defaults to: "left"

Methods

Name Description
eachYValue(Model, Delegate, object) Iterates over a given record's values for each of this series's yFields, executing a given function for each value. Any yFields that have been combined via legend drag-drop will be treated as a single value.
getMinMaxXValues() Calculate the min and max values for this series's xField.
getMinMaxYValues() Calculate the min and max values for this series's yField(s). Takes into account yField combinations, exclusions, and stacking.
getYValueAccessors() Returns an array of functions, each of which returns the value of the yField corresponding to function's index in the array, for a given record (each function takes the record as its only argument.) If yFields have been combined by the user via legend drag-drop, this list of accessors will be kept in sync with those combinations.
getYValueCount() Returns the number of yField values, taking into account fields combined via legend drag-drop.

Properties

Name Description
xField The field used to access the x axis value from the items from the data source. Defaults to: null
yField The field used to access the y-axis value from the items from the data source. Defaults to: null
© Copyright 2005-2011 SharpKit. All rights reserved.