choosing-trend-or-slope-view

Clarifies whether to visualize change as a trend line or slope chart in PostHog.

713|118|Updated Aug 11, 2020
One-click install
npx skills add https://github.com/PostHog/posthog-foss --skill choosing-trend-or-slope-view
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: choosing-trend-or-slope-view
Source: https://github.com/PostHog/posthog-foss/tree/main/products/product_analytics/skills/choosing-trend-or-slope-view
Command: npx skills add https://github.com/PostHog/posthog-foss --skill choosing-trend-or-slope-view

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Questions like "how much did X change from A to B" are ambiguous: they can mean the full path over time or just the net change between two endpoints. This Skill resolves that ambiguity before building a PostHog trend, so the resulting chart actually answers the question asked.

Core Features & Use Cases

  • Ambiguity detection: Recognizes phrasing like "before vs after", "week over week", or "start vs end" and prompts a short either/or clarification when the intent is unclear.
  • Line chart rendering: Builds a standard TrendsQuery with ActionsLineGraph display to show the value at every interval across the range.
  • Slope view rendering: Uses the same TrendsQuery result and switches the result card's Line/Bar/Slope toggle to Slope, showing each series as a single line from first to last point with per-series change in the legend.
  • Use Case: A product manager asks "how did signups change this quarter compared to the start?" The Skill asks whether they want the full trend or just start-vs-end, then renders a slope view comparing the first and last month across all signup series.

Quick Start

Ask how much a metric changed between two points in time and let the Skill clarify whether you want a trend line or a slope view before building the PostHog query.

Frequently Asked Questions about choosing-trend-or-slope-view

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I show change between two points in PostHog trends?

Run a TrendsQuery over the date range, then switch the result card's view toggle from Line to Slope. The slope view draws one line per series from the first interval's value to the last, showing net change and rank flips across series.

What is the difference between a line chart and a slope chart in PostHog?

A line chart shows the value at every interval, revealing the path including dips and spikes. A slope chart shows only the first and last points of the same TrendsQuery, highlighting net change and which series rose or fell.

When should I use a slope chart instead of a trend line?

Use a slope chart for clean before-to-after comparisons, especially with many series where relative movement and rank changes matter. Use a line chart when you need to see when changes happened, such as spikes or dips within the period.

How do I compare this month vs last month in PostHog?

For period-over-period on a single series, use a line chart with compareFilter set to compare true, which overlays the two periods. A slope view is better when comparing endpoints of many series at once.

Does the slope view require a different query than the line chart?

No, both come from the same TrendsQuery over the same date range. The slope is that series collapsed to its first and last point, controlled by the group-by interval rather than a separate query.

What are the limitations of the slope graph insight in PostHog?

The saved-insight slope display (ChartDisplayType.SlopeGraph) is behind the slope-graph-insight feature flag. A still-accumulating final period is shown as-is with a dashed connector, and the grouping interval defines which endpoints are compared.