Installation
Install the library from the package name declared in package.json.
npm install financial-charting-library
The package exports:
- the
Chartentry point - framework adapters for React, Next.js, React Native, Angular, Ember, Vue, and Svelte
Requirements
- Node.js 16 or newer for development and builds
- A browser environment for rendering
- A
datafeedimplementation that satisfiesIBasicDataFeed
Minimal Setup
import { Chart } from "financial-charting-library";
const chart = new Chart({
container: document.getElementById("chart")!,
datafeed,
symbol: "AAPL",
interval: "1D",
});