Elegant, data-driven charts built with Recharts — ready to drop into your applications.
rechartsInstall the following dependencies:
For more information and supported props about line charts, refer to the Line chart.
For more information and supported props about pie charts, refer to the Pie chart.
For more information and supported props about area charts, refer to the Area chart.
For more information and supported props about scatter charts, refer to the Scatter chart.
For more information and supported props about radar charts, refer to the Radar chart.
For more information and supported props about funnel charts, refer to the Funnel chart.
For additional chart types and supported props, refer to the Recharts documentation.
| Prop | Type | Default |
|---|---|---|
| children | React.ReactNode | - |
| config | ChartConfig | - |
| Prop | Type | Default |
|---|---|---|
| label | React.ReactNode | - |
| icon | React.ComponentType | - |
| color | string | - |
| theme | { light: string; dark: string } | - |
| Prop | Type | Default |
|---|---|---|
| indicator | line,dot,dashed | dot |
| hideLabel | boolean | false |
| hideIndicator | boolean | false |
| label | React.ReactNode | - |
| labelFormatter | (label, payload) => ReactNode | - |
| formatter | (value, name, item) => ReactNode | - |
| color | string | - |
| nameKey | string | - |
| labelKey | string | - |
| Prop | Type | Default |
|---|---|---|
| hideIcon | boolean | false |
| verticalAlign | top,bottom | bottom |
| nameKey | string | - |