Minimal template for using LightningChart JS in React + TypeScript, built with Vite.
npm install
npm run devSupply your LightningChart JS license key in .env:
VITE_LCJS_LICENSE="your-license-key-here"
| File | Description |
|---|---|
src/LC.tsx |
LCHost component and LCContext — manages a shared LC instance for all charts on the page |
src/Components/MyChartComponent.tsx |
Example chart component using LCContext |
src/App.tsx |
Usage example with two charts |
For a plug-and-play React time series chart component, see react-time-series-chart.