recharts.
Where visits come from
10,000 visits ยท sample data
Direct: 4,200 visits (42%).
View data
| Source | Visits | Share |
|---|---|---|
| Direct | 4,200 | 42% |
| Search | 3,100 | 31% |
| Referrals | 1,800 | 18% |
| 900 | 9% |
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