  const v = state.rows[r][c];
          if (v == null || String(v).trim() === '') continue;
          seen++;
          if (isNumeric(v)) score++;
        }
        if (seen && score/Math.max(1, seen) > 0.6) numeric.push(c);
      }
      return numeric;
    }

    function escapeHtml(str) {
      return String(str).replace(/[&<>"']/g, c => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;','\'':'&#39;'}[c]));
    }

    
    const canvasBgPlugin = {
      id: 'canvasBg',
      beforeDraw: (chart, args, opts)