Repository navigation
v3.7.0 — Charts moved to Chart.js (MIT)
From 5.2.0 ApexCharts ships under its own commercial "ApexCharts License", which needs an OEM licence for any product other people use — which is what a free MIT template is for. Every chart is now rendered with Chart.js 4.5 (MIT), and ApexCharts is gone from the dependencies, the bundle, the styles and the docs.
🔄 Changed
- All 21 charts rebuilt on Chart.js, same data, same pages, same palette:
- Dashboard — Revenue Overview (area →
line+ gradient fill), User Growth (bar), Order Status (doughnut), Storage Status (radialBar →doughnutprogress ring with centre label), Sales by Location (treemap →chartjs-chart-treemap). - Analytics — Revenue Analytics (area →
line), Traffic Sources (doughnut), User Behavior Flow (horizontalbarwith in-bar values), Real-time Activity (liveline), Browser Distribution (polarArea). - Reports — Revenue Trends (area →
line, with zoom), Top Products (doughnutwith slice percentages), Customer Acquisition (stackedbarwith values), Sales by Region (radar). - Users — Active Rate sparkline, User Registration Trends (
bar), By Role (doughnut). Orders — Order Trends (dual-axisline), Order Status (doughnut). Products — Sales Performance (line), Category Distribution (doughnut).
- Dashboard — Revenue Overview (area →
scripts/utils/charts.jsreplacesutils/apex.js. It registers only the chart types the template renders, maps the design tokens ontoChart.defaults(Inter, muted ticks, dashed horizontal gridlines, rounded bars, panel-styled tooltips) and exposescreateChart(), which mounts a sized canvas into the existing<div>placeholders.- Reports → Revenue Trends zoom now uses
chartjs-plugin-zoom(MIT): drag to zoom, Shift+drag to pan, Ctrl/⌘+wheel or pinch, and a Reset zoom button in the card header. The rest of the ApexCharts toolbar (SVG/PNG/CSV download menus) is not carried over. - Bundle: the
vendor-chartschunk went from 749 KB / 207 KB gzip to 213 KB / 73 KB gzip; all JS together from 325 KB to 206 KB gzip. The zoom plugin (~12 KB gzip) loads only on the reports page.
🐛 Fixed
- Charts follow the theme switch. Charts used to keep the colours of the mode they were first drawn in until the page was reloaded; they now re-theme as soon as light/dark changes, from any control.
- Browser Distribution legend overlapped the footer — the chart's container had a fixed 250px height under a 350px chart. The inline height is gone.
- Charts kept in Alpine state are now held outside the reactive proxy, which Chart.js instances do not tolerate.
🧹 Removed
apexcharts,utils/apex.js, every.apexcharts-*style rule and the chart-widthResizeObserverworkarounds (Chart.js resizes with its container on its own, sidebar toggle included).- The unused
CHART_RESIZE_DEBOUNCE_MSconstant.
Full changelog: v3.6.0...v3.7.0