Class: horizontal

STX.Drawing. horizontal


new horizontal()

Horizontal line drawing tool. The horizontal line extends infinitely in both directions.

It inherits its properties from STX.Drawing.segment

Methods


reconstruct(stx [, obj])

Reconstruct a horizontal

Parameters:
Name Type Argument Description
stx STXChart

The chart object

obj object <optional>

A drawing descriptor

Properties
Name Type Argument Description
col string <optional>

The line color

pnl string <optional>

The panel name

ptrn string <optional>

Optional pattern for line "solid","dotted","dashed". Defaults to solid.

lw number <optional>

Optional line width. Defaults to 1.

v0 number <optional>

Value (price) for the first point

d0 number <optional>

Date (string form) for the first point

al boolean <optional>

True to include an axis label

tzo0 number <optional>

Offset of UTC from d0 in minutes