Class: ValueScaleCalibrator

StockChartX. ValueScaleCalibrator


new ValueScaleCalibrator()

The abstract base class for value scale calibrators.

Members


<static> registeredCalibrators :Object

Gets object with information about registered value scale calibrators. Key is class name and value is constructor.
Type:
  • Object

majorTicks :Array.<StockChartX.ValueScaleMajorTick>

Returns an array of major ticks.
Type:

minorTicks :Array.<StockChartX.ValueScaleMinorTick>

Returns an array of minor ticks.
Type:

Methods


<static> deserialize(state)

Deserializes value scale calibrator.
Parameters:
Name Type Description
state Object The state of date scale calibrator.
Returns:
Type
IValueScaleCalibrator

calibrate(valueScale)

Calibrates value scale.
Parameters:
Name Type Description
valueScale StockChartX.ChartPanelValueScale The value scale.

loadState(state)

Restores calibrator's state.
Parameters:
Name Type Description
state object The state.
See:

saveState()

Saves calibrator's state.
See:
Returns:
The state.
Type
object