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....

Version:
  • ChartIQ Advanced Package
Since:
  • 2015-11-1

Methods


reconstruct(stx [, obj])

Reconstruct a shape

Parameters:
Name Type Argument Description
stx CIQ.ChartEngine

The chart object

obj object <optional>

A drawing descriptor

Properties
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