Repository navigation
Releases
Releases · ExpoKit/ExpoKit
expo-charts 2.0.0
expo-charts@2.0.0 — npm
npx expo install expo-charts@2 react-native-svgWhat's new
- 21 charts (up from 3): Bar, Line, Area, Pie, Donut, Multi-line, Stacked / grouped bars, Ranking bars, Radar, Activity rings, Gauge, Candlestick, Heatmap, Funnel and Sparkline
- shadcn-style series charts —
AreaSeriesChart,LineSeriesChart,BarSeriesChart,ComboChart,PieSeriesChart,RadialSeriesChart(also asChart.Area,Chart.Pie, …) with rows ofdata+ a seriesconfig - Theming — wrap your app in
ChartProvider(palettes, light / dark, radius);ChartCard,ChartTooltip,ChartLegend - Charts fill their parent when
widthis left out, morph smoothly when data changes, and support scrubbing, tap-to-select and legend toggles
Breaking changes
PieChart takes an array. Before:
<PieChart data={{ data: [{ label: 'Organic', value: 42 }, { label: 'Paid', value: 28 }] }} />Now:
<PieChart data={[{ label: 'Organic', value: 42 }, { label: 'Paid', value: 28 }]} />The ChartData, ChartProps and PieChartData types were removed — use ChartPoint and each chart's own props type (PieChartProps, BarChartProps, …). BarChart and LineChart props are unchanged.
Docs and live previews: https://expokit.karandev.in/docs/charts