PostHog / PostHog/posthog

insights: allow custom X and Y axis labels on non-SQL insights

Open
#58,166 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/insights team/product-analytics
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Feature request

Is your feature request related to a problem?

Could we have the option to add custom X- and Y-axis titles to trend (and other non-SQL) insights? Enabling a clearer picture of what is being presented.

Describe the solution you'd like

Two optional text inputs, "X-axis label" and "Y-axis label", in the trend insight Options panel. When set, the strings render alongside each axis on the chart, (perhaps matching the experience that recently shipped for SQL and data visualization charts)

Describe alternatives you've considered

  • Per-series custom_name already supports renaming individual series, but doesn't describe the axis as a whole.
  • aggregationAxisPrefix and aggregationAxisPostfix decorate each tickvalue (for example, $10, 10ms) but aren't an axis-level title.
  • The insight name and description sit above the chart, not alongside the axes, so they don't help when a chart is exported or embedded standalone.

Additional context

Ticket: https://posthoghelp.zendesk.com/agent/tickets/57867 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/58891)

Axis labels added for SQL insights here https://github.com/PostHog/posthog/pull/57546

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the trend insight Options panel and points to SQL axis-label PR #57546; start by reviewing that PR and locating the non-SQL trend insight configuration and chart entry points. Done means optional X-axis and Y-axis text fields render as axis titles on non-SQL charts, including exported or embedded views.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
54/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.