npm install chart.jsimport { Chart } from "chart.js/auto"; new Chart(canvas, { type: "line", data: { labels: ["Jan", "Feb"], datasets: [{ data: [3, 6] }] },});chart.jsWidely used canvas charting library with many available adapters.
Compatibility has not been verified yet in the PreactHub catalog.