Gold Price Chart
Build gold price charts and commodity visualizations with Chart.ts. Candlestick, line, and area charts with real-time streaming, moving averages, and volume overlays. SVG rendering for crisp display at any resolution.
$
npm install @chartts/coreexample.tsx
import { candlestick } from "@chartts/core"
const svg = candlestick({
data: goldPrices,
x: "date",
open: "open",
high: "high",
low: "low",
close: "close",
overlays: [
{ type: "sma", period: 20 },
{ type: "sma", period: 50 },
],
})Features
Candlestick and OHLC charts
Moving average overlays (SMA, EMA)
Volume bars
Real-time price streaming
Zoom and pan on time axis
Responsive for mobile trading apps
SVG rendering for print quality