Class: shape

CIQ.Drawing. shape

new shape()

shape is a default implementation of a CIQ.Drawing.BaseTwoPoint drawing which places a "shape" on the canvas. It can be rotated and/or stretched. It is meant to be overridden with specific shape designs, such as arrows....

  • ChartIQ Advanced Package
  • 2015-11-1


reconstruct(stx [, obj])

Reconstruct a shape

Name Type Argument Description
stx CIQ.ChartEngine

The chart object

obj object <optional>

A drawing descriptor

Name Type Argument Description
col string <optional>

The border color

fc string <optional>

The fill 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 center point

d0 number <optional>

Date (string form) for the center point

tzo0 number <optional>

Offset of UTC from d0 in minutes

a number <optional>

Angle of the rotation in degrees

sx number <optional>

Horizontal scale factor

sy number <optional>

Vertical scale factor