Menu

Every chart on React Native
📰

Every chart on React Native

DEV Community: react·Matt Litherland·about 18 hours ago
#lXu67A2N
#devtoreact#devto#dev#react#native
Long article (333 words) — no AI summary yet.
Reading 0:00
15s threshold

A month ago React Native got line and area charts. Today it gets ten more: bar, candlestick, composed, scatter, live line, gauge, heatmap, radar, radial and ring. They use the same components and props as the web, draw with Skia and animate on the UI thread, so a phone dashboard can use the same charts as your desktop one.

Built for fingers

Every chart responds to touch. Drag across bars, candles or a heatmap to scrub, and the rest dim while the tooltip follows. Radial charts scrub as you drag around the circle, rings light up under your finger, and radar picks the nearest axis and series. Vertical drags still scroll the page, and onActiveIndexChange gives you a hook for haptics on all of them.

The recipes come too

Bars group or stack with stacked , and negative values hang below zero. showValue puts labels inside bars that have room for them. Composed charts mix bars, lines and areas on one axis. Scatter plots spread into strip plots with jitter , using the same offsets as the web.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.