PostHog / PostHog/posthog

Add trendlines to graphs

Open
#4,294 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/trends team/product-analytics
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

Description

Is your feature request related to a problem?

I would like to add a trendline to charts

Describe the solution you'd like

A dropdown with various types of trendlines:

  • moving avg
  • linear
  • exponential
  • polynomial

Describe alternatives you've considered

There aren't alternatives in PostHog at the moment

Additional context

Thank you for your feature request – we love each and every one!

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 no files, tests, or entry points. Start by locating the chart implementation and existing chart controls, then clarify how moving average, linear, exponential, and polynomial trendlines should behave; done would mean the selected trendline types are available on charts and covered by appropriate verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, react
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.