Wick Charts Charts for data that never stops. Prices, metrics, sensors, logs. Wick Charts draws realtime, animated charts on canvas for React, Vue and Svelte. Give a series an array. When the array changes, the last point eases to its new value, new points join at the edge, and the view follows them. Zoom, pan, crosshair and tooltips work without extra code. There are no runtime dependencies besides your framework…
Charts for data that never stops. Prices, metrics, sensors, logs.
Wick Charts draws realtime, animated charts on canvas for React, Vue and Svelte. Give a series an array. When the array changes, the last point eases to its new value, new points join at the edge, and the view follows them. Zoom, pan, crosshair and tooltips work without extra code. There are no runtime dependencies besides your framework.
Lines and bars stack, as values or as percents of the total. The X axis takes time, plain numbers or categories, and a second series can use its own Y scale.
Live data
Pass a new array to data when the data changes. The series compares it with the previous array:
A changed last point eases to its new value.
A few new points at the end are appended.
Anything else replaces the data.
The view follows the newest point. Pan back into history and it stays where you put it; pan back to the end and it follows again. The Realtime Data guide shows this and the imperative appendData / updateData calls.
Keep the array immutable. Each framework has one trap:
React:setData((prev) => [...prev, point]). An array changed in place keeps its reference, so the series does not see the change.
Vue: keep large datasets in a shallowRef and assign a new array: data.value = [...data.value, point]. A deep ref wraps every point in a proxy. triggerRef after an in-place push does not reach the chart.
Svelte 5: keep chart data in $state.raw (or a store) and assign a new array: data = [...data, point]. With a deep $state, the chart reads every point through a proxy, and a large dataset (100k+ points) blocks the main thread for seconds instead of milliseconds. On Svelte 4, assign a new array the same way.
For history that does not fit in memory, <EdgeLoader side="left"> calls your function when the view comes near the oldest loaded point, and draws a loading indicator at that edge until the promise resolves. Resolve with false when there is no more data. See Data loading. This component is in the React package only.
Read a chart
Move the pointer over the chart. The crosshair follows it, the info bar at the top shows the values under it, and <Tooltip> shows them next to the pointer.
Scroll to zoom the time axis. Drag to pan. On a touch screen, pinch to zoom and drag with one finger to pan.
Double-click to fit all the data in view.
Set interactive={false} on the container for a chart that only shows data.
chart.describe() returns what the chart shows as text: the ranges, each series, and likely mistakes such as a container with no height or a series outside the view. Use it in a test, or let an agent check its own chart.
To keep several charts in step, pass the visible range and the crosshair of one chart to the others from its viewportChange and crosshairMove events. See Multi-chart sync.
Annotations
<Marker> pins one moment, such as a deploy or a peak. Give it a seriesId and it sits on that series’ line.
<TimeRegion> shades an interval. Leave out to and it runs to the right edge.
<ReferenceLine> draws a level at a value, or a vertical line at a time.
Annotations are not data: they stay out of the tooltip, the legend and the Y range. See Annotations.
Themes
Pick a built-in theme, build your own with createTheme(), or change one in the theme editor. A theme sets the colors, the font and the look of every part of the chart. Tooltips, legends and axis labels also take your own render code and keep their built-in position. See Custom renders.
Each series draws itself in when it mounts. Pick an intro animation per series, or write your own.
shadcn/ui
A shadcn/ui registry adds chart blocks to your project as source files you own. The blocks read the colors and the dark mode of your shadcn theme.
The shadcn page shows every block live, with its install command and a usage example, for React, Vue and Svelte.
What it adds to your app
Code: tree-shaken ESM, so you ship only the chart types you import. A candlestick chart alone is 55 kB gzipped.
Dependencies: none besides your framework (React 18+, Vue 3.3+, Svelte 4 or 5).
DOM: one div with a few <canvas> layers and a visually hidden text description per chart.
Network: no requests, no telemetry.
Limits
Server rendering. The chart draws in the browser only. On the server, the container renders as an empty element.
Screen readers. A chart gives a screen reader a short summary and a full text description, updated at most once a second. A reader cannot step through the points one by one: for a chart that matters, put a data table next to it. accessibility={false} turns the text off; ariaLabel sets your own summary.
Before 1.0. A minor version can change the API. MIGRATION.md lists each change with the code to update.
<script lang="ts">
import {
ChartContainer, CandlestickSeries, Tooltip,
Crosshair, YAxis, TimeAxis, type OHLCInput
} from '@wick-charts/svelte';
let { data }: { data: OHLCInput[] } = $props();
</script>
<ChartContainer>
<CandlestickSeries {data} />
<Tooltip />
<Crosshair />
<YAxis />
<TimeAxis />
</ChartContainer>
This is Svelte 5 with runes. On Svelte 4, declare the prop with export let data: OHLCInput[]; instead.
ChartContainer fills its parent (width and height are 100%), so give the parent a height. The container also has a 240px min-height, so a parent with no height still shows a chart. For a smaller chart, such as a sparkline in a table row, set min-height: 0 (minHeight: 0 in React) in the container’s style.
The same file is on unpkg (https://unpkg.com/@wick-charts/react/dist/wick-charts.umd.min.js); pin a version with @x.y.z for production. The file is self-contained.
Documentation
Every component, prop, type and slot context is in the docs site. Start at ChartContainer, then pick a series or an overlay in the sidebar.
Contributing
Bug reports, feature requests and pull requests are welcome. Open an issue first for anything larger than a small fix, so we can agree on the approach.
pnpm install
pnpm dev # docs site with every chart type at http://localhost:5173
pnpm test # unit and integration tests
pnpm lint # Biome
pnpm typecheck
A pull request should pass pnpm test, pnpm lint and pnpm typecheck, and add a test for each bug fix.
评论