new ValueScale(config)
Represents value scale on the chart.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config |
Object | The configuration object.
Properties
|
Extends
Members
-
<readonly> chart :StockChartX.Chart
-
The parent chart.
Type:
- Inherited From:
-
<readonly> leftPanelCssClass :string
-
Gets CSS class name of the left value scale root div element.
Type:
- string
- See:
-
rightPanelCssClass
to get css class name of the right panel.
-
manualWidth :number
-
Gets/Sets manual width.
Type:
- number
- See:
-
useManualWidth
to enable manual width usage.
-
<readonly> rightPanelCssClass :string
-
Gets CSS class name of the right value scale root div element.
Type:
- string
- See:
-
leftPanelCssClass
to get css class name of the left panel.
-
useManualWidth :boolean
-
Gets/Sets flag that indicates whether manual width should be used.
Type:
- boolean
- See:
-
manualWidth
to set manual width.
Methods
-
destroy()
-
Destroys and removes control from the parent element.
- Inherited From:
-
draw()
-
Draws component.
- Inherited From:
-
layout(frame)
-
Layouts value scale elements.
Parameters:
Name Type Description frame
StockChartX.Rect The chart panels container frame rectangle. -
loadState(state)
-
Loads component state.
Parameters:
Name Type Description state
Object The state - Inherited From:
- See:
-
saveState
to save state.
-
saveState()
-
Saves component state.
- Inherited From:
- See:
-
loadState
to load state.
Returns:
- Type
- Object