refactor(charts): unify on Chart.js, remove Chartist #11
Reference in New Issue
Block a user
Delete Branch "integreat-unify-charts"
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?
Summary
The codebase had two charting libraries. The dashboard and expense report already use Chart.js, while the admin page was the sole remaining consumer of Chartist. This unifies everything on Chart.js.
Changes
admin.clj— converted both admin charts from Chartist to Chart.js, using the same Alpinex-data/x-init<canvas>pattern as the dashboard:barline{:labels … :series [[…]]}to Chart.js's{:labels … :data …}.[hiccup2.core :as hiccup]require (only used for the Chartist<script>tags).ui.clj— removed the global Chartist CSS/JS CDN includes from the base page.card.clj—content-cardusedoverflow-scroll(always-on scrollbar tracks); switched tooverflow-autoso the chart cards no longer show superfluous scrollbars while wide data tables still scroll on overflow../tmp/scratch dir (tracked via.gitkeep) and documented it in AGENTS.md.Verification
chartistreferences remain insrc/clj.lein cljfmt checkpasses./dev-login, and confirmed both admin charts render via live Chart.js instances with no superfluous scrollbars.