lightweight-charts-integration
Installation
SKILL.md
Lightweight-charts integration — gotchas worth knowing before you start
lightweight-charts is one of the fastest open-source canvas charting libs. It's also one of the most laconic about failure modes. Most of the bugs below cost multiple iterations to find because they manifest as "the chart looks empty" or "the crosshair jumps to weird places" rather than thrown errors.
When to use
Reach for this skill if you're:
- Adding lightweight-charts to a React/Next.js app for the first time
- Building a multi-series chart (candles + overlays via
ICustomSeriesPaneView) - Synchronizing crosshairs between multiple chart instances
- Authoring color tokens that feed both Tailwind/CSS and the chart's canvas
- Seeing the candle series render fine on its own but go blank when an overlay is added
- Confused why
series.setCrosshairPosition(...)is throwing "not a function"