MCPcopy
hub / github.com/chart-kit/react-native-chart-kit

github.com/chart-kit/react-native-chart-kit @v7.0.1 sqlite

repository ↗ · DeepWiki ↗ · release v7.0.1 ↗
944 symbols 2,468 edges 257 files 0 documented · 0%
README

React Native Chart Kit

React Native Chart Kit

Beautiful charts for React Native. Line, area, bar, pie, donut, progress,
and contribution heatmaps for dashboards, reports, and data-rich mobile
apps.







<a href="https://www.npmjs.com/package/react-native-chart-kit"><img alt="npm" src="https://img.shields.io/npm/v/react-native-chart-kit?style=flat-square" /></a>
<a href="https://www.npmjs.com/package/react-native-chart-kit"><img alt="downloads" src="https://img.shields.io/npm/dm/react-native-chart-kit?style=flat-square" /></a>
<a href="https://github.com/chart-kit/react-native-chart-kit/raw/v7.0.1/LICENSE"><img alt="license" src="https://img.shields.io/npm/l/react-native-chart-kit?style=flat-square" /></a>







<a href="https://chartkit.io/">Website</a>
·
<a href="https://chartkit.io/docs/react-native/">Docs</a>
·
<a href="https://chartkit.io/docs/react-native/getting-started/installation/">Quickstart</a>
·
<a href="https://chartkit.io/docs/react-native/charts/pricing/">Pro</a>

Install

npm install react-native-chart-kit react-native-svg

Expo:

npm install react-native-chart-kit
npx expo install react-native-svg

First Chart

import { LineChart } from "react-native-chart-kit/v2";

const data = [
  { month: "Jan", revenue: 52 },
  { month: "Feb", revenue: 86 },
  { month: "Mar", revenue: 58 },
  { month: "Apr", revenue: 134 }
];

export function RevenueChart() {
  return (
    <LineChart
      data={data}
      xKey="month"
      yKey="revenue"
      width={410}
      height={240}
    />
  );
}

The root import stays available for legacy screens. New screens should use react-native-chart-kit/v2.

What You Get

Pro Charts

Chart Kit Pro adds licensed chart workflows for product dashboards:

Links

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
apps/site/src/chart-theme-controls.ts
AbstractChartProps (Interface)
(no doc)
src/shared/AbstractChart.tsx
ProgressChartProps (Interface)
(no doc)
src/charts/progress/ProgressChart.tsx
Window (Interface)
(no doc)
apps/site/src/theme-switch.ts
AbstractChartConfig (Interface)
(no doc)
src/shared/AbstractChart.tsx
ContributionGraphProps (Interface)
(no doc)
src/charts/contribution-graph/index.tsx
Dataset (Interface)
(no doc)
src/shared/types.ts
BarChartProps (Interface)
(no doc)
src/charts/bar/BarChart.tsx

Core symbols most depended-on inside this repo

lerp
called by 35
apps/site/src/components/ChartsSupportedArtwork.tsx
clampChartWidth
called by 31
apps/site/src/previews/data.ts
resolveChartViewportWindow
called by 28
packages/core/src/interaction/viewport.ts
resolveCartesianChartThemeConfig
called by 26
packages/react-native/src/theme/presets.ts
docsSlug
called by 22
apps/site/astro.config.mjs
normalizeCartesianData
called by 18
packages/core/src/data/normalize.ts
getFontFamilyProps
called by 16
packages/react-native/src/charts/line/text.ts
createLinearScale
called by 15
packages/core/src/scales/linear.ts

Shape

Function 834
Method 70
Class 24
Interface 16

Languages

TypeScript100%

Modules by API surface

src/charts/contribution-graph/ContributionGraph.tsx34 symbols
apps/site/src/previews/reactNativeGestureHandlerStub.tsx33 symbols
apps/site/src/previews/reactNativeWebStub.tsx30 symbols
scripts/run-rn-cli-native-check.mjs25 symbols
packages/react-native/src/charts/bar/selectionAnimation.ts20 symbols
apps/site/src/previews/ChartPlayground.tsx17 symbols
apps/site/src/lib/remark-strip-duplicate-title.mjs15 symbols
apps/site/src/components/ChartsSupportedArtwork.tsx15 symbols
scripts/typecheck-doc-examples.mjs14 symbols
scripts/benchmark-core-line.mjs14 symbols
packages/react-native/src/charts/line/xLabels.ts14 symbols
apps/site/src/chart-theme-controls.ts14 symbols

Dependencies from manifests, versioned

@astrojs/check0.9.9 · 1×
@astrojs/react5.0.4 · 1×
@astrojs/starlight0.39.2 · 1×
@chart-kit/core7.0.0 · 1×
@chart-kit/prolatest · 1×
@chart-kit/svg-renderer7.0.0 · 1×
@eslint/js9.39.4 · 1×
@react-native-community/cli20.1.3 · 1×
@react-native/metro-config0.83.9 · 1×
@tailwindcss/vite4.3.0 · 1×
@types/node25.6.0 · 1×
@types/react19.2.14 · 1×

For agents

$ claude mcp add react-native-chart-kit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact