Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(experiments): infer chart tooltip generic in VariantTimeseriesChart (#64801)

Richard Solomou8848b2900b46
diff --git a/frontend/src/scenes/experiments/MetricsView/new/VariantTimeseriesChart.tsx b/frontend/src/scenes/experiments/MetricsView/new/VariantTimeseriesChart.tsx
index 77cbf5607fab..2adee1760f99 100644
--- a/frontend/src/scenes/experiments/MetricsView/new/VariantTimeseriesChart.tsx
+++ b/frontend/src/scenes/experiments/MetricsView/new/VariantTimeseriesChart.tsx
@@ -1,4 +1,3 @@
-import { Chart, ChartType, TooltipModel } from 'lib/Chart'
import { useChart } from 'lib/hooks/useChart'
import { useInsightTooltip } from 'scenes/insights/useInsightTooltip'
@@ -90,7 +89,7 @@ export function VariantTimeseriesChart({
},
tooltip: {
enabled: false,
- external: ({ chart, tooltip }: { chart: Chart; tooltip: TooltipModel<ChartType> }) => {
+ external: ({ chart, tooltip }) => {
const canvas = chart.canvas
if (!canvas) {
return