Browse Source

feat(starfish): adds value formatter for tooltip for Webvitals Slideout panel (#58470)

Adds value formatter to chart tooltip
edwardgou-sentry 1 year ago
parent
commit
5172d5e0db

+ 3 - 0
static/app/views/performance/browser/webVitals/webVitalsDetailPanel.tsx

@@ -400,6 +400,9 @@ export function WebVitalsDetailPanel({
                       ? {}
                       ? {}
                       : {axisLabel: {formatter: getFormattedDuration}}
                       : {axisLabel: {formatter: getFormattedDuration}}
                   }
                   }
+                  tooltip={
+                    webVital === 'cls' ? {} : {valueFormatter: getFormattedDuration}
+                  }
                 />
                 />
               )}
               )}
             </ChartZoom>
             </ChartZoom>