Skip to main content
Package: recharts.
Where visits come from

10,000 visits ยท sample data

Direct: 4,200 visits (42%).

View data
Sample visits by source
SourceVisitsShare
Direct4,20042%
Search3,10031%
Referrals1,80018%
Email9009%

Try it

Click a slice or select a source in the list. The selected slice extends outward and the center label shows its share. The source buttons also work with a keyboard. Selection stays in React state, so it remains selected when you move your pointer away. Open View data for all counts and percentages.

Code

sources-chart.jsx

Key props

Next

Compare changes over time with an area chart. See the Recharts Pie reference.