DataChart
Chart
A responsive and customizable chart component using Recharts.
Preview
Installation
Code
Usage
Props
Chart
Prop | Type | Default |
---|---|---|
data | any[] | - |
config | ChartConfig | - |
className | string | - |
dataKeys | string[] | - |
xAxisKey | string | - |
showGrid | boolean | - |
showTooltip | boolean | - |
showLegend | boolean | - |
Configuration
The ChartConfig
type allows you to specify how each data series should be displayed:
Examples
Basic Chart
Multiple Series
Custom Height
Without Grid or Legend
Edit on GitHub
Last updated on