formatting-insight-axes
Installation
SKILL.md
Formatting insight axes
PostHog renders TrendsQuery insights with a built-in axis formatter. Use it
instead of contorting formula or aggregationAxisPostfix to fake units.
The anti-pattern
If you are reaching for any of these, stop and pick a format below first:
formula: "A / 60"withaggregationAxisPostfix: " mins"— manual seconds -> minutesformula: "A / 1000"withaggregationAxisPostfix: " s"— manual ms -> secondsformula: "A * 100"withaggregationAxisPostfix: "%"— manual ratio -> percentaggregationAxisPostfix: "ms"/"s"/"min"/"hr"on raw values
These freeze the unit at one scale. The built-in formatter picks a friendly unit per value (1.5s, 2m 12s, 1h 4m) and keeps the underlying series numerically correct for further math, breakdowns, and alerts.