Documentation Index
Fetch the complete documentation index at: https://docs.darvas.app/llms.txt
Use this file to discover all available pages before exploring further.
Signature
plot is both a declaration (top-level) and an emission (inside onBar). The name is the unique identifier - the same name ties the declaration to the per-bar writes.
Two-step pattern
Return value
plot() returns a handle { id, name } you can pass to fill():
Options
| Option | Type | Default | Description |
|---|---|---|---|
color | string | chart default | #RRGGBBAA hex color |
linewidth | number | 1 | Line width in pixels |
style | string | "line" | See Plot styles |
display | boolean | true | Whether to render this plot |
Emitting NaN for gaps
Plots acceptNaN or null as a value - this produces a gap in the rendered line (no data point at that bar):
Budget
Maximum 64 plot series per indicator. Exceeding this limit raises an error at evaluation time.hline, fill, bgcolor, and barcolor count separately from plot series. See API limits for all budgets.Related pages
Plot styles
All 12 style values: line, histogram, area, circles, arrows and more.
hline, fill, bgcolor
Complementary drawing primitives.
API limits
64-plot budget and other runtime constraints.