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

deck.gl Scatterplot NaN legend for TEXT/STRING column #15738

Closed
mona-mk opened this issue Jul 16, 2021 · 14 comments · Fixed by apache-superset/superset-ui-plugins-deckgl#43
Closed
Labels
#bug Bug report

Comments

@mona-mk
Copy link

mona-mk commented Jul 16, 2021

Legend is shown as NaN in deck.gl scatter plot when TEXT or STRING column data type is selected as point color.
Screenshot 2021-07-16 at 11 12 50

  1. Geneate a deck.gl plot
  2. Under point color, pick a TEXT or STRING column
  3. See NaN as legend

Environment:

  • superset version: 1.2.0
@mona-mk mona-mk added the #bug Bug report label Jul 16, 2021
@fcomuniz
Copy link
Contributor

Same issue here

@colorzhang
Copy link

tried today. same issue.

@villebro
Copy link
Member

Would it be possible to add some more context? (redacted of course)

  • Screenshots of the Explore view, especially the critical parts of the control panel
  • Screenshots of the data panel (both results and samples)
  • Expected result in the legend based on the data based on what's visible in the screenshots

Point being, by making the problem as easy to reproduce as possible, the community can focus developer time on working on the fix as opposed to reproducing the bug.

@mona-mk
Copy link
Author

mona-mk commented Aug 19, 2021

Thanks Ville. Further (easier) description on how to reproduce:

  1. Open deck.gl Demo dashboard
  2. On Scatterplot demo, click on three vertical dots on the right corner and select View chart in Explore
  3. Under point color, select a TEXT dimension (in screen shot I randomly picked STREET)
  4. You will see NaN in legend

Of course this is a dummy example, but hopefully will clarify the problem. Please see the requested screen shots enclosed. Expected result in this case is seeing the street names in legend, i.e. based on Data screen shot:

  • Fulton Street
  • Mason Street
  • Hyde Street
  • ....
    Also, changing the formatting to Original value doesn't help.

Screenshot 2021-08-19 at 9 31 45

Screenshot 2021-08-19 at 9 33 09

@villebro
Copy link
Member

Hi @mona-mk , I was able to reproduce and was able to come up with a quick fix (I also fixed the broken tooltip at the same time):
image

I'll clean up the PR and open it in a sec

@villebro
Copy link
Member

@mona-mk here's the fix PR: apache-superset/superset-ui-plugins-deckgl#43

@villebro
Copy link
Member

@mona-mk @fcomuniz @colorzhang this is now fixed on master, feel free to try it out at your convenience

@fcomuniz
Copy link
Contributor

thanks!

@mona-mk
Copy link
Author

mona-mk commented Aug 20, 2021

Thanks you very much Ville! Just pulled the latest-dev image and tested. Confirm it works as it should.

@Deninc
Copy link

Deninc commented Sep 13, 2021

@mona-mk @fcomuniz @colorzhang this is now fixed on master, feel free to try it out at your convenience

How do I check when this is merged into the official release?

@mona-mk
Copy link
Author

mona-mk commented Oct 5, 2021

@villebro today I pulled 1.3.0 and 1.3.1 images, and I still have this bug. Isn't it already included in one of the official releases?

@villebro
Copy link
Member

villebro commented Oct 5, 2021

@mona-mk unfortunately due to our current multirepo setup, it's very difficult to cherrypick viz plugin fixes into official Apache releases after a release branch has been cut. But we should be cutting the 1.4 branch very soon, so if you can wait just a little while longer it will be included in an official release.

@mona-mk
Copy link
Author

mona-mk commented Oct 6, 2021

Thanks a lot Ville for your update. I would appreciate if we could get it released soon. Looking forward to it 🙏

@MichaelTiemannOSC
Copy link

Just hit this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants