-
Notifications
You must be signed in to change notification settings - Fork 795
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
Wrapped facet doesn't work with geoshape #2369
Comments
Can you provide a full reproducible code snippet to eliminate the guesswork required to reproduce your problem? For example, reading your data with pandas like this produces a dataframe: testData = pd.read_csv('https://raw.githubusercontent.com/juanfrans/data-sample/master/testData.csv') but this doesn't work in a geo chart, because geographic features are represented as raw strings. I suspect you're loading your data differently, but there's no way for me to know what code you're running. |
@jakevdp Sure. Here's the full code:
Thank you. |
Thanks! This appears to be a known vega-lite bug: vega/vega-lite#3729 You may be able to work around this through manual filtering and concatenation. |
@jakevdp Oh, ok. Could you give me some pointers about the manual filtering and concatenation? I tried to figure it out before seeing your suggestion about the facets but couldn't do it 🤦♂️ |
@jakevdp Amazing! Thank you. |
Updated the StackOverflow answer as well 😁 |
Ah, was scratching my head for so long wondering why a simple facet is not working....
|
@juanfrans I am going through Altair issues to find those that have been resolved and can be closed. It looks to me like this issue has been solved so I am closing it, but please feel free to reopen and add a comment if there is something you don't think is resolved yet. |
Hi @joelostblom, I understand what you are doing, but some of the issues, like this one, point to actual bugs. You can definitely say that this one in particular is from the Vega-Lite side, even then I think we ought to keep it open. It's just a humble personal opinion though. Until there is a fix for this in upcoming releases, I think we should also track it here apart from Vega-Lite repo. |
Hi @joelostblom. I agree with @armsp. Even though this issue might not originate directly with Altair, it's still an issue, and I think it should stay open. I'm thinking in particular of people who are encountering the same problem, to whom seeing this as a "closed" issue might be confusing. |
Thanks for clarifying @armsp and @juanfrans! I've reopened the issue so that it's easily visible for others until the VegaLite bug is fixed. |
@joelostblom Thank you so much Joel. I have a vested interest in this issue as well as few more that have origins in Vega-Lite. I am tracking this in my portfolio myself in this visualization - https://armsp.github.io/covidviz/geospatial/vaccine/2021/02/20/vaccine-tracker.html |
Hi. I'm trying to follow this example: https://altair-viz.github.io/gallery/us_incomebrackets_by_state_facet.html?highlight=wrapped with my own data but it doesn't seem to be working.
Here is the snipped of code I'm using:
And here is a sample of the data I'm using: https://github.com/juanfrans/data-sample/blob/master/testData.csv
I get the grid of charts and the legend with the appropriate scale range, but the charts are empty.
If I only do one chart with one
weekNumber
it works fine.Any ideas? Thank you.
The text was updated successfully, but these errors were encountered: