If you're looking for a Recharts alternative for your React charts, moving to Bklit UI just got easier. We checked every Recharts component and every example in its gallery against Bklit, then filled the most common gap: reference lines and areas on bar charts. The agent skills now map your Recharts code to Bklit for you, down to individual props.
Reference lines on bar charts
ChartMarkers and ReferenceArea now work inside BarChart. Pass category labels to ReferenceArea (x1="Feb" x2="Apr") to shade whole bars, or x1="Mar" x2="Mar" to highlight one. When your categories are dates, ChartMarkers centres each badge on the bar for that day and lists it in the tooltip.
Horizontal bars (orientation="horizontal") get a real value axis: BarXAxis now shows values along the bottom, with numTicks and formatValue. Grid highlightRowValues draws a vertical line at each value, and ReferenceArea y1 / y2 draws a vertical strip.
Recharts migration, done by your agent
Install the skills, then ask your agent to move your charts over:
npx skills add bklit/bklit-ui
The bklit-ui-migrate skill finds every chart that uses Recharts, directly or through shadcn/ui's ChartContainer. It tells you which charts convert as-is, which need a workaround and which should stay on Recharts for now, then rewrites them with Bklit components. That includes the tricky cases: a Recharts <ReferenceLine x={100} /> on horizontal bars becomes Grid highlightRowValues={[100]}, because Bklit names props by role (categories on x, values on y) rather than by screen axis.
Speak Recharts, get Bklit
The bklit-ui-vocabulary skill now includes a Recharts phrasebook. Describe what you want in Recharts terms, such as connectNulls, stackId, a ReferenceLine or "the Waterfall example", and your agent answers with the matching Bklit component and prop. When Bklit has no equivalent yet, it says so plainly instead of inventing one.
See migrating from Recharts, the skills docs and reference lines and areas on the bar chart.
Originally published on the Bklit UI changelog. Bklit UI is an open-source library of React chart components for shadcn/ui and React Native.
Top comments (0)