%}<extra></extra>`, // Updated hovertemplate
      };

      const previousTrace = {
        x: xVals,
        y: prevY,
        name: 'Previous',
        type: 'bar',
        marker: {
          color: colours,
          opacity: 0.5,
          pattern: { shape: '/', solidity: 0.3 }
        },
        hovertemplate: `<b>%{x}</b><br>Previous: %{y:.2f} ms<extra></extra>`,
      };

      const layout = {
        template: 'plotly_white',
        font: { family: 'Georgia, Times New Roman, Times, serif', size: