Skip to content

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Mar 27, 2025

Fixes a nasty bug with Discover. If someone chooses multiple Y axes and sets the display to "Previous Period", they see something very weird: the "previous period" series are stacked so they have an incorrect position on the chart. This happens because "previous period" values are hard-coded in multiple places to always stack. They really only work when shown next to stacked area or bar charts!

This is very deep down, and hard to rip out. Instead, to fix the issue for the user in question, I'm makes it so "Previous Period" always uses stacked area charts. This has its own problems, but Discover isn't long for this world. Newer UIs allow users to customize the visualization on their own terms instead of using heuristics on the data.

Closes DAIN-122.
Closes #87969

e.g.,

Screenshot 2025-03-26 at 3 25 10 PM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 27, 2025
@gggritso gggritso marked this pull request as ready for review March 27, 2025 13:19
@gggritso gggritso requested a review from a team as a code owner March 27, 2025 13:19
@gggritso gggritso merged commit a01b85c into master Mar 31, 2025
44 checks passed
@gggritso gggritso deleted the georgegritsouk/dain-122-previous-period-visualization-is-incorrect-in-discover branch March 31, 2025 13:33
andrewshie-sentry pushed a commit that referenced this pull request Mar 31, 2025
Fixes a nasty bug with Discover. If someone chooses multiple Y axes and
sets the display to "Previous Period", they see something very weird:
the "previous period" series are _stacked_ so they have an incorrect
position on the chart. This happens because "previous period" values are
hard-coded _in multiple places_ to always stack. They really only work
when shown next to stacked area or bar charts!

This is very deep down, and hard to rip out. Instead, to fix the issue
for the user in question, I'm makes it so "Previous Period" always uses
stacked area charts. This has its own problems, but Discover isn't long
for this world. Newer UIs allow users to customize the visualization on
their own terms instead of using heuristics on the data.

Closes DAIN-122.
Closes #87969
@github-actions github-actions bot locked and limited conversation to collaborators Apr 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Previous period visualization shows incorrect data

3 participants