Skip to main content

draw

Draw chart primitives. Pass a non-empty id to make a primitive stateful. Re-emitting the same id on a later bar moves/updates it; draw.remove(id) deletes it. An empty id (the default) draws a one-shot primitive. Times are unix seconds (see barTime()); colors come from rgba(...).

Functions​