DefaultColors(headers.length);
      for (let i=0;i<headers.length;i++) {
        if (i === state.labelColumn) continue;
        const id = `ds_${i}`;
        const checked = state.datasets.includes(i);
        if (!(i in state.datasetColors)) state.datasetColors[i] = palette[i % palette.length];
        const el = document.createElement('div');
        el.className = 'dataset-item';
        el.innerHTML = `
          <input id="${id}" type="checkbox" ${checked?'checked':''} data-col="${i}">
          <div 