Chart.xkcd 2.0

Chart.xkcd is a hand-drawn style chart library I built in 2019, primarily inspired by xkcd comics.
It was originally made for star-history — in that context, people viewing charts care less about exact values and more about the overall trend. I needed a chart library that de-emphasizes precise numbers and focuses on trends, so I built this tool.
Time flies — that was 7 years ago. Despite infrequent updates, I'm glad to see it's still widely used:
- Over 7,000 stars on GitHub
- 100+ projects depending on it
- 20,000+ monthly downloads on jsdelivr
Recently, while working on a new project, I needed this library again — only to find some dependencies had security vulnerabilities and new chart types hadn't been released. So I spent a few days working with Claude Code to update chart.xkcd.
What's New in 2.0
- Fixed security vulnerabilities and upgraded dependencies
- Added Combined chart
- Reduced npm package size
- Improved the example page — all charts on one page
Links
Give it a try!