[loggi-ua9] Consider splitting stats-charts.js into multiple files #115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bead ID:
loggi-ua9Type: task
Priority: P3
Status: closed
Close reason: Split stats-charts.js (913 lines) into 3 files: stats-charts-cards.js (263 lines, summary + heatmap), stats-charts-trends.js (382 lines, time-series charts), stats-charts-dist.js (288 lines, distribution charts). Updated entry.html script loading and architecture.md. All tests pass.
stats-charts.js has grown to 913 lines after adding 4 new chart renderers (cumulative, gap analysis, duration distribution, word count distribution). While each renderer is concise, the file now significantly exceeds the ~300 line guideline for JS files. Consider splitting into stats-charts-core.js (existing charts) and stats-charts-extra.js (new histogram/distribution charts), or by chart category.