Customizing Features
Charts & Data Visualization
Where the chart components live and how to customize them for your data.
VibeFast ships with ready-to-go chart components built on @shopify/react-native-skia, d3-shape, and Reanimated so you can render bar, line, donut, and pie visuals with smooth animations.
Where the code lives
- Mobile entry:
apps/native/src/app/(root)/(protected)/charts/index.tsxrenders the demo screen and sample datasets. - Feature folder:
apps/native/src/features/chartscontains reusable components, data fixtures, and theuse-theme-configwiring. - Shared types & helpers:
apps/native/src/features/charts/typesdefines props, anddatasupplies sample datasets you can replace with real metrics.
Customizing charts
- Use
BarChart,LineChart,PieChart, orDonutChartcomponents directly; they accept props likedata,height,valueFormatter, andshowLegend. - All charts consume
useThemeConfigso colors follow your theme tokens (theme.colors.primary,theme.colors.foreground, etc.). - Swap the sample data (
apps/native/src/features/charts/data) with backend queries to show real-time figures.
The components already handle layout, spacing, and touch interactions.
Bringing it into your screens
Drop the chart components anywhere you need a dashboard:
import { BarChart } from "@/features/charts/components/bar-chart";
<BarChart
data={liveData}
height={320}
showGrid
valueFormatter={(value) => `$${value}`}
/>;If you need a new chart type, copy the existing component and follow the same useThemeConfig + Canvas pattern.
CLI support
Run vf add charts to install the chart feature if it is not in your current project.
Found an issue or bug in the docs?
Help me improve! If you spot any errors, typos, or have suggestions, please let me know.
Reach out on X/Twitter @zafarbuildzz