Skip to content
EliteChart

Left toolbar

Drawing tools, magnet snap, layer lock, hide-all, and the inline color picker — every drawing action you'll need.

The left toolbar is a vertical rail of drawing-tool icons plus a few modal controls (magnet, lock, hide). Click a tool, click the chart, draw.

Quick example

code
'use client';
import { EliteChart } from '@elitechart/elitechart';
import '@elitechart/elitechart/styles.css';

export default function Page() {
  return (
    <div style={{ width: '100%', height: '100vh' }}>
      <EliteChart symbol="BTCUSD" timeframe="1h" />
    </div>
  );
}

How it works

The rail is grouped into five sections, top to bottom.

  1. Trend / line tools — trend line, ray, horizontal line, vertical line, parallel channel.
  2. Geometry tools — rectangle, ellipse, triangle, polyline, arc.
  3. Fibonacci tools — retracement, extension, time zones, channel, speed-resistance fan.
  4. Annotation — text, callout, price label, anchored note, arrow.
  5. Pattern overlays — Long / Short Position, head-and-shoulders, ABCD, Gann fan, pitchfork.

Below the tools sit three modal controls:

  • Magnet — snaps the cursor to nearby OHLC values while drawing.
  • Lock — protects existing drawings from accidental drag.
  • Hide all — visibility-toggles drawings without deleting them.

All 40+ drawing tools are catalogued in concepts/drawings-catalog. Writing your own is covered in guides/writing-a-drawing-tool.

Variations

Hide the rail

code
nav[aria-label="Drawing tools"] { display: none; }

Default to the trend-line tool

code
import { useChartStore } from '@elitechart/elitechart';
useChartStore.getState().setActiveTool('trend-line');

API

ControlKeybindingStore action
Trend lineAlt-TsetActiveTool('trend-line')
Horizontal lineAlt-HsetActiveTool('horizontal')
RectangleAlt-RsetActiveTool('rectangle')
MagnetMtoggleMagnet()
LockCmd-K Cmd-LtoggleLock()
Hide allCmd-Alt-HtoggleDrawingsVisible()

The complete list is in keyboard-shortcuts.