Drawing
Constants used by plots and entities.
Shapes
Use shape.*.
| Constant |
|---|
shape.circle |
shape.square |
shape.diamond |
shape.up |
shape.down |
shape.left |
shape.right |
shape.cross |
shape.plus |
shape.asterisk |
Line Styles
Use linestyle.arrow.* only with Line(..., { style }).
| Constant |
|---|
linestyle.solid |
linestyle.dotted |
linestyle.dashed |
linestyle.arrow.right |
linestyle.arrow.left |
linestyle.arrow.both |
Sizes
These constants resolve to numeric text sizes.
| Constant | Value |
|---|---|
size.auto | 0 |
size.xxs | 8 |
size.xs | 10 |
size.sm | 12 |
size.md | 14 |
size.lg | 16 |
size.xl | 20 |
size.xxl | 24 |
size.xxxl | 32 |
size.xxxxl | 40 |
Extend
Use extend.* with Box(...).
| Constant |
|---|
extend.none |
extend.left |
extend.right |
extend.up |
extend.down |
extend.x |
extend.y |
Text Alignment
Use text.align.* with Box(...) and Label(..., { textAlign }) in //@version=2.
| Constant |
|---|
text.align.left |
text.align.center |
text.align.right |
text.align.top |
text.align.bottom |
Text Wrap
Use text.wrap.* with Box(...).
| Constant |
|---|
text.wrap.none |
text.wrap.auto |