Skip to main content
Recharts provides a comprehensive set of chart types to visualize your data. Each chart type is optimized for specific use cases and data patterns.

Cartesian charts

Cartesian charts use X and Y axes to plot data points in a two-dimensional coordinate system. These are the most common chart types for displaying continuous and categorical data.

LineChart

Display data as a series of points connected by lines. Ideal for showing trends over time or continuous data.
LineChart supports various curve types including monotone, linear, step, basis, and more through the type prop on the Line component.

BarChart

Represent data using rectangular bars. Perfect for comparing values across categories or showing distributions.
Stack multiple bars by providing the same stackId prop:

AreaChart

Similar to LineChart but with the area below the line filled. Useful for showing volume or magnitude over time.

ScatterChart

Plot individual data points without connecting them. Ideal for showing correlations and distributions.

ComposedChart

Combine multiple chart types (Line, Bar, Area) in a single chart. Perfect for comparing different data representations.

FunnelChart

Visualize data through stages that progressively decrease in size. Common in sales and conversion analytics.

Polar charts

Polar charts use a circular coordinate system with angles and radii. These charts are effective for cyclical data and multi-dimensional comparisons.

PieChart

Display data as slices of a circle, showing proportions of a whole.
Create a donut chart by setting the innerRadius prop on the Pie component.

RadarChart

Display multivariate data on axes radiating from a center point. Excellent for comparing multiple variables.

RadialBarChart

Circular bar chart radiating from the center. Useful for showing progress or hierarchical data.

Specialized charts

Treemap

Display hierarchical data using nested rectangles. Size represents value, making it easy to spot patterns.

Sankey

Visualize flow between different states or categories. Perfect for showing transitions and connections.

SunburstChart

Multi-level hierarchical data visualization in a radial layout. Each ring represents a level in the hierarchy.

Choosing the right chart

Use LineChart or AreaChart for continuous time series. LineChart emphasizes individual data points and trends, while AreaChart emphasizes volume and cumulative values.
Use BarChart for discrete comparisons between categories. Horizontal bars work well for long category names, while vertical bars are traditional for time-based categories.
Use PieChart for showing how parts make up a whole. Keep the number of slices to 5-7 for readability.
Use ScatterChart to explore relationships between two variables. Add a third dimension using color or size.
Use RadarChart when comparing multiple variables across different entities. Ideal for skill assessments, performance metrics, or feature comparisons.
Use Treemap for static hierarchies or Sunburst for interactive exploration of hierarchical structures.
Use Sankey to visualize flows between states, energy transfers, or user journeys.