Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationLineChart

LineChart

A responsive line chart component built on Recharts for visualizing trends and data changes over time.

Install Dependencies

npx
quickcode-ui add LineChart

Examples

Basic

Basic Line Chart

Linear

Linear Line Chart

Step

Step Line Chart

Multiple Lines

Multiple Lines Chart

With Legend

Line Chart with Custom Legend

Revenue
Expenses

Props

ChartContainer

PropTypeDefaultDescription
configChartConfigConfiguration object defining chart colors and labels
childrenReactNodeChart components to render
classNamestringAdditional CSS classes

LineChart

PropTypeDefaultDescription
dataany[]Array of data objects to visualize
marginobjectChart margins configuration
classNamestringAdditional CSS classes

ChartTooltipContent

PropTypeDefaultDescription
indicator'line' | 'dot' | 'dashed''dot'Visual indicator style
hideLabelbooleanfalseHide the tooltip label
hideIndicatorbooleanfalseHide the visual indicator
classNamestringAdditional CSS classes
Last updated on