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

Y Bar: split-by value labels are broken when multiple aggregate values are plotted #2254

Open
tomjakubowski opened this issue Jun 12, 2023 · 1 comment
Labels
bug Concrete, reproducible bugs

Comments

@tomjakubowski
Copy link
Contributor

tomjakubowski commented Jun 12, 2023

Bug Report

Steps to Reproduce:

I made a small example which is easy to cause the bug in. Skip to step 4 using this export mls_club_transfer_profit.html.zip, or go here while the site is still up: https://mls-stats.netlify.app/mls_club_transfer_profit.html

  1. Create a Y Bar chart
  2. "Group by" some column
  3. Choose a couple aggregate columns to plot on the bar chart
  4. Hovering over a bar shows the correct aggregate values ✅
    Screen Shot 2023-06-11 at 9 11 04 PM
  5. "Split by" another column (in this example, "name" or "season" column works well)
  6. Hovering over a bar shows NaN aggregate values ❌ Screen Shot 2023-06-11 at 9 13 51 PM

Expected Result:

When plotting only one of the Spend/Earning columns, hovering shows the value correctly. I would expect to see the same values when plotting both columns

Screen Shot 2023-06-11 at 9 17 05 PM Screen Shot 2023-06-11 at 9 17 16 PM

Actual Result:

NaN

Environment:

perspective-python v2.2.1

@texodus texodus added the bug Concrete, reproducible bugs label Jun 12, 2023
@nahoom-belete
Copy link

Hi. I noticed that when I select a different view(e.g. Y Area) then switch the view back to Y Bar after following steps 5 & 6, the expected output is displayed. Maybe this can help narrow down what the issue might be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

No branches or pull requests

3 participants