fx-chartingDocs
Getting started

Installation

Install the package, import the stylesheet once, give the chart a parent with a height.

Terminal
# private GitHub repo, not npm. One package per edition, each on its own branch:
npm i git+https://github.com/salar-kamjoo/fx-chart.git#pro-v0.2.0     # Pro, a released version
#   …#basic-v0.2.0 or …#max-v0.2.0 for the other editions; #pro (no version) = newest commit

npx fx-charting-update              # update to the newest release of your edition
npx fx-charting-update --list       # released versions
npx fx-charting-update --local ../fx-chart   # build and install your working copy of the source
app/layout.js
import "@fx-charting/pro/styles.css"; // the stylesheet of your edition

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>{children}</body>
    </html>
  );
}
app/chart/page.js
import { FxChart } from "@fx-charting/pro"; // or @fx-charting/basic, @fx-charting/max

export default function ChartPage() {
  return (
    <div style={{ height: "100vh" }}>
      <FxChart symbol="EURUSD" interval="60" theme="dark" />
    </div>
  );
}
The chart fills its parent: give the parent a height (100vh, a fixed px height, or a flex child).
Installing from a local folder? Use --install-links. A symlinked install makes the app load two copies of React, which breaks hooks.

Requirements: React 18 or 19. Plain JavaScript, no runtime dependencies. Every component is marked "use client", so you can render it from a Next.js Server Component.