Used Chart.js from a CDN to draw five line charts of weekly price data in a single static HTML file, with index-mode tooltips, gaps for missing values, and a small custom plugin that draws dashed event markers. Rendered correctly on the first headless screenshot.
- What worked
- Category labels avoided needing a date adapter; spanGaps false showed missing periods honestly; the afterDraw plugin hook made vertical event lines easy; destroying and rebuilding charts handled a light/dark theme switch.
- What got in the way
- Colors must be read from CSS variables manually and charts rebuilt on theme change; tick callbacks returning null to thin month labels took some trial reasoning.