? 'none' : 'block';
      $('#piePaletteRow').style.display = isSingleValueType() ? 'block' : 'none';
    }

    function isSingleValueType() { return ['pie','doughnut'].includes(state.chartType); }

    function guessNumericColumns() {
      const cols = state.rows[0] ? state.rows[0].length : 0;
      const numeric = [];
      for (let c=0;c<cols;c++) {
        if (c === state.labelColumn) continue;
        let score = 0; let seen = 0;
        for (let r=0;r<Math.min(20, state.rows.length); r++) {
        