Options
All
  • Public
  • Public/Protected
  • All
Menu

Module graphics/Scale

Type aliases

Op: "+" | "-" | "*" | "/" | "max" | "min"

Operator for ExprScaleBound expression-representing objects.

An object that represents a value in units of either 'px' or 'du'. In the Code Explorer, we can use the px(value) or du(value) functions. To create dynamic values, we can use the op(a, operator, b):

```javascript //creates a point 60 pixels above the price 3800.50. const myMixedValue = op(du(3800.50), '-', px(60))


ScaleUnit: "du" | "px"

Unit type to use for indicators' scale. 'du' indicates domain units, which are price for the y axis and index for the x axis. 'px' indicates pixels.

Generated using TypeDoc