new ValueScalePanel(config)
Describes value scale panel on the chart.
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | The configuration object.
Properties
|
Extends
Members
-
<readonly> chart :StockChartX.Chart
-
Return parent chart.
Type:
-
<readonly> cssClass :String
-
The css class name of div element that holds value scale panel.
Type:
- String
-
<readonly> frame :StockChartX.Rect
-
Returns frame rectangle.
Type:
- Inherited From:
-
<readonly> leftPanel :StockChartX.ValueScalePanel
-
The left value scale panel.
Type:
-
<readonly> rightPanel :StockChartX.ValueScalePanel
-
The right value scale panel.
Type:
-
<readonly> rootDiv :jQuery
-
The root div element.
Type:
- jQuery
- Inherited From:
-
<readonly> valueScale :StockChartX.ValueScale
-
The parent value scale.
Type:
-
visible :boolean
-
The flag that indicates whether panel is visible.
Type:
- boolean
Methods
-
destroy()
-
Destroys and removes control from the parent element.
- Inherited From:
-
draw()
-
Draws control.
- Inherited From:
-
handleEvent(event)
-
Handles event.
Parameters:
Name Type Description event
StockChartX.WindowEvent The event object. - Inherited From:
Returns:
- Type
- boolean
-
hitTest(point)
-
Checks if a given point belongs to a frame rectangle.
Parameters:
Name Type Description point
StockChartX.Point The point. - Inherited From:
Returns:
- Type
- boolean
-
layout(frame, isLeftPanel)
-
Layouts value scale panel elements
Parameters:
Name Type Description frame
StockChartX.Rect The chart panels container frame rectangle. isLeftPanel
Boolean True if it is a left panel, false if it is a right panel. - Overrides: