When to use Chart Kit
Use Chart Kit to add line, area, bar, pie, donut, progress, or contribution heatmap charts to a React Native app. It fits mobile dashboards, reports, trends, category comparisons, and activity screens. Use the modern API for new screens. Keep the root import when maintaining a legacy chart. Check the migration guide before changing an existing screen.
Chart Kit renders charts locally in your app. The website provides documentation and live examples. The HTTP API below serves documentation. It does not accept chart data or render chart images.
Quickstart
npm install react-native-chart-kit react-native-svgImport modern components from react-native-chart-kit/v2. Follow the installation guide for the current React Native requirements and a complete first chart. The line chart playground provides an interactive example where you can test chart properties in the browser.
The public package uses the MIT license. Pro workflows use the separate @chart-kit/pro package. Read Pro installation and pricing before you select a commercial feature.
Authentication and API keys
Public documentation, Markdown files, and the documentation API need no authentication or API key. Installing the public library needs no Chart Kit account. Pro license terms apply to production use of Pro packages. A Pro license is separate from access to the public documentation API.
Documentation API
Use GET /api/v1/docs to list the available paths. Use GET /api/v1/docs/page?path=/docs/react-native/charts/line to read one page as Markdown inside JSON. The OpenAPI 3.1 specification defines unique operation IDs, parameters, and response schemas for function calling.
curl -H 'Accept: application/json' 'https://chartkit.io/api/v1/docs/page?path=/docs/react-native/charts/line'The API supports GET and HEAD. Errors use JSON with error.code, error.message, and error.hint. A missing page returns 404. An invalid path parameter returns 400. An unsupported method returns 405. The API has no account quota. Cloudflare traffic protections can apply. Cache documentation in your client and avoid repeated bulk requests.
Markdown and agent instructions
Start with llms.txt to select a task and a page. Read agent-instructions.md for package and licensing rules. Public pages support Accept: text/markdown and a .md URL. The homepage Markdown URL is /index.md. Use llms-full.txt only when you need the full public content.
curl -H 'Accept: text/markdown' https://chartkit.io/docs/react-native/charts/lineOfficial CLI
The chart-kit CLI ships in react-native-chart-kit from version 7.0.4. It reads the public documentation API and writes Markdown or JSON to standard output. It makes no changes to your app and needs no API key.
npx --package=react-native-chart-kit chart-kit docs /docs/react-native/charts/lineUse chart-kit docs to list pages, or add --json for structured output. Run chart-kit --help for examples. Failures write a JSON error to standard error and return a nonzero exit code.
More resources
Read the documentation index, migration guide, troubleshooting guide, and contributor guide. Browse the public source or contact Chart Kit for support.