PostHog / PostHog/posthog

Ability to add moving averages and a few other transformations to a line chart.

Open
#11,634 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/saved-insights
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?

No

Describe the solution you'd like

Ability to add some reference lines onto a chart like a moving average ete.

Describe alternatives you've considered

I could try and calculate it maybe but then i cant plot more than one calculated line on a plot (which i think i may made another feature request for as would be very useful for plotting two ratios for example).

Additional context

I like seeing the daily volatility in this chart but i would also like to just add a 3 (5,7,n) day moving average to it too for some trend stuff.

image

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

No files, tests, or entry points are identified. Start by locating the line-chart implementation and existing chart transformation tests; define the supported moving-average windows and reference-line behavior, then verify that multiple transformed lines can be plotted with clear output.

Written by the indexing model from the issue text.

Assessment

Domain
data-visualization
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.