Chartjs-adapter-date-fns
lastmod 2026-11-10created 2021-10-082 edits
chartjs-adapter-date-fns is an adapter that connects Chart.js's time scale to the date-fns library for parsing and formatting dates. Chart.js has no built-in date handling library, so using the time scale requires loading one such adapter alongside it. date-fns is a tree-shakable functional library, chosen by projects that want to keep bundle size small.