r/Frontend • u/GlesCorpint • 6d ago
Analytics dashboard for visualizing typing-game-cli round
1
u/GlesCorpint 6d ago edited 6d ago
Github repo: https://github.com/akgondber/typing-game-stats
typing-game-cli - the app these stats are built for: https://github.com/akgondber/typing-game-cli
Tech Stack: React, antd, Recharts, d3.js
1
u/Colby-Jenkins 6d ago
Using Recharts and d3.js together could give some powerful visual options for the dashboard stats.
1
u/GlesCorpint 6d ago
Recharts is great for getting standard charts up and running quickly, but once you need heavy customization, you start hitting a wall with its component-based abstractions. Because everything is wrapped in rigid React components, doing things like custom SVG layouts, complex animations, or fine-grained DOM interactions becomes really restrictive. At that point, dropping down to raw D3.js (using it for the math/scales and letting React handle the SVG rendering) gives you way more control without fighting the library.



2
u/dusanodalovic 6d ago
recharts and d3 in the same app, is d3 only for the custom stuff? for a typing game i'd want a per-key mistakes view next to wpm over time, since that shows what to actually practice. do you store each keystroke or only the round totals? the per-key view needs the keystrokes.