Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart Aggregate Y column values rather than displaying last Y value #6908

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

lvitti
Copy link
Contributor

@lvitti lvitti commented Apr 18, 2024

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

Resubmit the fix created by @akc2267 in the PR.

A couple fixes so that Y values are summed. Without this fix, charts will display the final row for every X value. If multiple rows exist for a given X, then those values will be over-written. Plotly displays this info correctly, so without this fix, redash's hover labels are incorrect while Plotly's visual representation is accurate.

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Related Tickets & Documents

#4587
#4673

@lvitti
Copy link
Contributor Author

lvitti commented Apr 18, 2024

@guidopetri, @kravets-levko

Copy link
Collaborator

@eradman eradman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this change; seems to work perfectly.

agg_y_pie

@lvitti
Copy link
Contributor Author

lvitti commented Apr 23, 2024

@justinclift

@justinclift
Copy link
Member

Somehow missed this one, sorry for the delay. 🤦

Thanks for reviewing it @eradman, and @lvitti good you for being persistent. 😁

@justinclift justinclift enabled auto-merge (squash) April 25, 2024 05:56
@justinclift justinclift merged commit f097603 into getredash:master Apr 25, 2024
11 checks passed
@lvitti lvitti deleted the fix_chart_values branch April 25, 2024 10:45
@eradman eradman mentioned this pull request Jun 8, 2024
10 tasks
eradman added a commit to eradman/redash that referenced this pull request Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants