lightweight-charts
Skill by tradingview
Guides an AI assistant through building with TradingView's lightweight-charts v5 TypeScript library. It covers series, time and price scales, realtime data, panes, markers, plugins and framework wrappers. It is written for developers who use the npm package.
Install lightweight-charts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/tradingview/lightweight-charts /tmp/lightweight-charts && mkdir -p ~/.claude/skills && cp -r /tmp/lightweight-charts/.github/skills/lightweight-charts ~/.claude/skills/lightweight-chartsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/tradingview/lightweight-charts /tmp/lightweight-charts && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/lightweight-charts/.github/skills/lightweight-charts ~/.gemini/antigravity-cli/skills/lightweight-chartsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives an AI assistant guidance for TradingView's lightweight-charts library. It covers creating charts, adding Line, Area, Bar, Candlestick and Histogram series, configuring time and price scales, streaming realtime or historical data, panes, markers, tooltips and custom plugins or primitives. It also covers SSR and browser loading, and React, Vue and Web Components wrappers.
The skill tells the assistant to check the installed package version and its typings file before answering, so API names come from local typings. It focuses on v5 conventions and includes a v4-to-v5 replacement list plus common pitfalls around time, scales, markers and wrappers. It is aimed at developers building charts with the TypeScript package.
Written from the project's SKILL.md and checked against it.
What it can do
- Chart and series setupCreates charts and adds series with chart.addSeries using v5 conventions.
- Scales and time handlingConfigures time and price scales and explains UTCTimestamp and business day formats.
- Realtime and historical dataExplains how to stream updates with series.update and replace data with setData.
- Panes and layoutCovers chart.panes(), chart.addPane() and pane height settings.
- Markers and tooltipsCovers createSeriesMarkers, per-bar colors, tooltips and legends.
- Plugins and primitivesCovers custom plugins, series primitives and pane renderers.
- Coordinate conversionExplains converting between coordinates, prices and logical time-scale positions.
- Framework wrappersCovers React, Vue, Web Components, SSR and browser loading.
- v4 to v5 migrationMaps older v4 calls such as addLineSeries and setMarkers to v5 replacements.
What you need
- An npm project with the lightweight-charts package installed
Try asking
- Add a candlestick series with realtime updates to my lightweight-charts app
- Convert my v4 setMarkers code to the v5 createSeriesMarkers API
- Show my chart's axis labels in the Europe/Berlin timezone
Good to know
- Covers the TypeScript lightweight-charts package, not the third-party Python wrapper.
- Local typings win when they disagree with official docs.
- Repo paths in the routing map exist only in the upstream source checkout.
- There is no built-in timeScale.timezone option; formatters are used instead.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .github/skills/lightweight-charts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md28 KB
Alternatives to lightweight-charts
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
lightweight-charts: common questions
Which version of lightweight-charts does this skill target?
The skill focuses on v5 API conventions. It tells the assistant to check the installed package version first.
Does it work with the Python lightweight_charts package?
The source says that code importing from lightweight_charts with underscore is probably the third-party Python wrapper. The skill advises saying so before giving core JavaScript advice.
How does it handle timezones?
The source says there is no built-in timeScale.timezone option. It recommends tickMarkFormatter and localization.timeFormatter with Intl.DateTimeFormat for display.
How do I install lightweight-charts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is lightweight-charts free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is lightweight-charts safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to lightweight-charts?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
