(ctx, { type: 'line', data: { labels: [], datasets: [] }, options: { plugins: { canvasBg: { color: state.canvasBg } } }, plugins: [canvasBgPlugin] });
      setStatus('Reset. Load a CSV.');
      setShapeNote('Line chart');
    });
    

    
    (function init() {
      const defaultEl = document.getElementById('defaultCsv');
      const embedded = defaultEl ? String(defaultEl.textContent || '').trim() : '';
      if (embedded) {
        handleText(embedded);
        setStatus('Loaded default dataset. You 