new FibonacciDrawingBase(config)
The base abstract class for fibonacci drawings.
Parameters:
Name | Type | Argument | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
config |
object |
<optional> |
The configuration object.
Properties
|
Extends
Members
-
actualTheme :object
-
Returns actual theme.
Type:
- object
- Inherited From:
-
<readonly> canMove :boolean
-
Returns true if drawing can be moved, false otherwise.
Type:
- boolean
- Inherited From:
-
<readonly> canResize :boolean
-
Returns true if drawing can be resized, false otherwise.
Type:
- boolean
- Inherited From:
-
<readonly> canSelect :boolean
-
Returns true if drawing can be selected, false otherwise.
Type:
- boolean
- Inherited From:
-
chartPoints :Array.<StockChartX.ChartPoint>
-
Gets/Sets array of chart points.
Type:
- Array.<StockChartX.ChartPoint>
- Inherited From:
-
levelLinesExtension :string
-
The level lines extension.
Type:
- string
-
levelLinesExtension :string
-
The level lines extension.
Type:
- string
-
levelLinesExtension :string
-
The level lines extension.
Type:
- string
-
levels :Array.<StockChartX.FibonacciLevel>
-
The level values
Type:
- Array.<StockChartX.FibonacciLevel>
-
levelTextHorPosition :string
-
The horizontal position of the level text.
Type:
- string
-
levelTextVerPosition :string
-
The vertical position of the level text.
Type:
- string
-
locked :boolean
-
Gets/Sets flag that indicates whether drawing is locked.
Type:
- boolean
- Inherited From:
-
<readonly> pointsNeeded :number
-
Returns number of required points for the drawing.
Type:
- number
- Inherited From:
-
resizable :boolean
-
Gets/Sets flag that indicates whether drawing is resizable.
Type:
- boolean
- Inherited From:
-
reverse :boolean
-
The flag that indicates whether levels are reversed.
Type:
- boolean
-
reverse :boolean
-
The flag that indicates whether levels are reversed.
Type:
- boolean
-
selectable :boolean
-
Gets/Sets flag that indicates whether drawing is selectable.
Type:
- boolean
- Inherited From:
-
selected :boolean
-
Gets/Sets flag that indicates whether drawing is selected.
Type:
- boolean
- Inherited From:
-
showLevelBackgrounds :boolean
-
The flag that indicates whether area between levels is filled.
Type:
- boolean
-
showLevelLines :boolean
-
The flag that indicates whether level lines are visible.
Type:
- boolean
-
showLevelPercents :boolean
-
The flag that indicates whether level percents are visible.
Type:
- boolean
-
showLevelPrices :boolean
-
The flag that indicates whether level prices are visible.
Type:
- boolean
-
showLevelValues :boolean
-
The flag that indicates whether level values are visible.
Type:
- boolean
-
showTrendLine :boolean
-
The flag that indicates whether trend line is visible.
Type:
- boolean
-
theme :object
-
Gets/Sets theme.
Type:
- object
- Inherited From:
Methods
-
appendChartPoint(point)
-
Appends new chart point.
Parameters:
Name Type Description point
StockChartX.Point | StockChartX.ChartPoint The point to append. - Inherited From:
Returns:
The array of drawing's points.- Type
- Array.<StockChartX.ChartPoint>
Example
var drawing = new StockChartX.DotDrawing(); drawing.appendChartPoint({record: 10, value: 20.0});
-
bounds()
-
Returns bounds rectangle.
- Inherited From:
Returns:
- Type
- StockChartX.Rect
-
cartesianPoint(index)
-
Converts chart point to cartesian point.
Parameters:
Name Type Description index
number The index of point. - Inherited From:
Returns:
- Type
- StockChartX.Point
Example
var point = drawing.getCartesianPoint(0); var x = point.x; var y = point.y;
-
cartesianPoints()
-
Converts all chart points to cartesian points.
- Inherited From:
Returns:
- Type
- Array.<StockChartX.Point>
-
select()
-
Makes drawing selected.
- Inherited From:
-
translate(dx, dy)
-
Translates drawing onto a given distance.
Parameters:
Name Type Description dx
number The X offset. dy
number The Y offset. - Inherited From:
Example
drawing.translate(5, 5);