Circular Bar Chart
Bars around a clock face for cyclical data like visits per hour; hover to read the centre.
| 00:00 | 42 |
|---|---|
| 01:00 | 30 |
| 02:00 | 22 |
| 03:00 | 18 |
| 04:00 | 15 |
| 05:00 | 20 |
| 06:00 | 48 |
| 07:00 | 96 |
| 08:00 | 160 |
| 09:00 | 210 |
| 10:00 | 240 |
| 11:00 | 262 |
| 12:00 | 281 |
| 13:00 | 270 |
| 14:00 | 255 |
| 15:00 | 248 |
| 16:00 | 266 |
| 17:00 | 302 |
| 18:00 | 340 |
| 19:00 | 362 |
| 20:00 | 318 |
| 21:00 | 240 |
| 22:00 | 150 |
| 23:00 | 80 |
Edit with AIPro
Describe a change to Circular Bar Chart and get the updated code. The live preview above stays as the original.
Quality report
Kinetiq VerifiedLoads cleanly
No errors on phone and desktop screens.
Fits a phone screen
No sideways scrolling at 375 px wide.
No serious accessibility problems
Passed the axe-core WCAG 2.1 A/AA check.
- Size (gzipped)
- 1.9 KB
- Extra packages
- motion
- Reduced motion
- Respected
Tested automatically in Chrome 158.0.8127.36 with axe-core 4.14.1. Automated tools catch only part of all accessibility problems, so treat this as a solid minimum, not a full audit.
Installation
One command
Adds the file to components/ui/circular-bar-chart.tsx and installs motion for you.
Run login once. It needs a free account, because the code is for signed-in users only. Get your token.
Or do it by hand
Install the dependencies
$ npm i motion lucide-reactSign in, open the Code tab above and copy it into
components/ui/circular-bar-chart.tsxUse it
The file exports the component and a
Demoshowing typical usage. Import whichever you need.