Drawing tools
23 built-in drawing tools. All tools support magnet snapping, undo/redo, and full JSON serialization.
Activating a tool
chart.activateDrawingTool('trendLine')
// User clicks two points; the drawing is added to the manager. Catalog
Lines
trendLinerayextendedLinehorizontalLineverticalLine
Channels
parallelChannelregressionChannel
Shapes
rectangleellipsetriangle
Fibonacci
fibRetracementfibExtensionfibTimeZones— new in 0.8, vertical Fibonacci interval projections from a two-anchor time span.
Advanced
pitchforkelliottWavegannFangannBoxanchoredVWAPvolumeProfileRange
Measurement
measurepriceRangedateRange
Annotations
textarrow
Serialization
const json = chart.serialize() // → string
chart.deserialize(json) // validates + restores drawings/indicators/viewport deserialize filters malformed drawings, orders, and indicators —
partial or corrupt payloads no longer poison the chart.