r bar
      const colours = dataOps.map(o => categoryColors[o.category] || categoryColors.Other);

      const currentTrace = {
        x: xVals,
        y: currentY,
        error_y: { type: 'data', array: errorY, visible: true },
        name: 'Current',
        type: 'bar',
        marker: { color: colours },
        customdata: savingPercentages, // Pass saving percentages to customdata
        hovertemplate: `<b>%{x}</b><br>Current: %{y:.2f} ms<br>MAD: %{error_y.array:.2f} ms<br>Change: %{customdata:.2