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(mcp-analytics): keep zoomed success rate ticks distinct (#129040)

Georgis Andonise357b6a5bbf4
diff --git a/products/mcp_analytics/frontend/tool-quality/ToolQualityCharts.tsx b/products/mcp_analytics/frontend/tool-quality/ToolQualityCharts.tsx
index a9a9c195e865..ce1e4af559d7 100644
--- a/products/mcp_analytics/frontend/tool-quality/ToolQualityCharts.tsx
+++ b/products/mcp_analytics/frontend/tool-quality/ToolQualityCharts.tsx
@@ -28,11 +28,6 @@ function formatCompactPercentage(value: number): string {
return formatPercentage(value, { compact: true })
}
-// A zoomed axis can span less than one percent, so whole-number ticks would repeat.
-function formatPrecisePercentage(value: number): string {
- return formatPercentage(value, { precise: true, compact: true })
-}
-
function buildConfig(
timezone: string,
interval: TimeInterval,
@@ -218,7 +213,8 @@ export function ToolQualityCharts({
const successRateConfig = useChartConfig(
() =>
buildConfig(timezone, interval, {
- tickFormatter: formatPrecisePercentage,
+ format: 'percentage',
+ decimalPlaces: 3,
startAtZero: views.successRate !== 'zoom',
}),
[timezone, interval, views.successRate]