Skip to main content

Installation

Install the library from the package name declared in package.json.

npm install financial-charting-library

The package exports:

  • the Chart entry 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 datafeed implementation that satisfies IBasicDataFeed

Minimal Setup

import { Chart } from "financial-charting-library";

const chart = new Chart({
container: document.getElementById("chart")!,
datafeed,
symbol: "AAPL",
interval: "1D",
});