Class: FixedDateScaleCalibrator

StockChartX. FixedDateScaleCalibrator


new FixedDateScaleCalibrator()

The date scale calibrator which produces fixed number of labels.

Extends

Members


majorTicks :StockChartX.DateScaleMajorTick

Returns an array of date scale major ticks.
Type:
Inherited From:

majorTicksCount :number

Gets/Sets number of major ticks on the date scale.
Type:
  • number

majorTicksFormat :Object

Gets/Sets format of different major tick labels (first, last, all others)
Type:
  • Object
Example
calibrator.majorTicksFormat = {
     first: 'YYYY-MM-DD HH:mm',
     last: 'YYYY-MM-DD HH:mm',
     other: 'HH:mm'
 };

minorTicks :StockChartX.DateScaleMinorTick

Returns an array of date scale minor ticks.
Type:
Inherited From:

minorTicksCount :number

Gets/Sets number of minor ticks on the date scale.
Type:
  • number

Methods


calibrate(dateScale)

Calibrates date scale.
Parameters:
Name Type Description
dateScale StockChartX.DateScale The date scale.
Inherited From:

loadState(state)

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

saveState()

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