What problem does it solve?
Charts are often hard to size correctly and style consistently, leading to broken layouts and unreadable visualizations.
Core Features & Use Cases
- Recharts chart building blocks: LineChart, BarChart, AreaChart, PieChart, and composable chart elements (axes, grids, tooltips, legends).
- Responsive rendering rule: Enforces wrapping every chart in ResponsiveContainer so it renders correctly across screen sizes.
- Common visualization patterns: Basic, grouped, and stacked bar charts; single and multi-line trends; area charts; pie and donut distributions.
- UX-focused styling guidance: Uses Tailwind/CSS variable-friendly color conventions for grid, text, tooltips, and highlights.
- Data formatting recipes: Tick formatters for currency, percentages, compact numbers, and date formatting for axes.
Quick Start
Create your chart component by importing Recharts and wrapping the chosen chart (e.g., BarChart) inside ResponsiveContainer with an explicit width and height, then use XAxis/YAxis plus Tooltip and Legend.