Skip to main contentSkip to navigation

Advanced Chart

Full-featured TradingView chart with symbol switching and timeframes.

Installation

npx @hanzo/ui@latest add advanced-chart

Usage

import { AdvancedChart } from "@hanzo/ui/finance"

export default function Demo() {
  return <AdvancedChart symbol="NASDAQ:AAPL" interval="D" theme="dark" />
}

Props

PropTypeDefaultDescription
symbolstring"NASDAQ:AAPL"Trading symbol to display
intervalstring"D"Chart interval (1, 5, 15, 30, 60, D, W, M)
theme"light" | "dark""dark"Color theme
widthstring | number"100%"Chart width
heightstring | number500Chart height
autosizebooleantrueAuto-resize to container
hideTopToolbarbooleanfalseHide top toolbar
hideSideToolbarbooleanfalseHide side toolbar
saveImagebooleantrueEnable save image

Examples

Basic Usage

<AdvancedChart symbol="NASDAQ:AAPL" />

Custom Styling

<AdvancedChart
  symbol="BINANCE:BTCUSDT"
  theme="light"
  height={600}
  hideTopToolbar={true}
/>

Multiple Symbols

<div className="grid gap-4">
  <AdvancedChart symbol="NASDAQ:AAPL" />
  <AdvancedChart symbol="NASDAQ:GOOGL" />
</div>