-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
WorldMap not working (getting 'None') #2361
Comments
I'm trying to debug it. It seems that the field 'country_fieldtype' is None in the server, but it has a value in the frontend. Even that fields appears correctly in the URI: /superset/explore/table/2/?form_data=%7B%22datasource%22%3A%20%222__table%22%2C%20%22compare_suffix%22%3A%20%22o10Y%22%2C%20%22secondary_metric%22%3A%20%22sum__SP_POP_TOTL%22%2C%20%22granularity%22%3A%20%22year%22%2C%20%22slice_id%22%3A%208%2C%20%22row_limit%22%3A%2050000%2C%20%22entity%22%3A%20%22country_code%22%2C%20%22since%22%3A%20%222014-01-01%22%2C%20%22num_period_compare%22%3A%20%2210%22%2C%20%22groupby%22%3A%20%5B%5D%2C%20%22viz_type%22%3A%20%22world_map%22%2C%20%22until%22%3A%20%222014-01-02%22%2C%20%22markup_type%22%3A%20%22markdown%22%2C%20%22where%22%3A%20%22%22%2C%20%22metric%22%3A%20%22sum__SP_RUR_TOTL_ZS%22%2C%20%22country_fieldtype%22%3A%20%22cca3%22%2C%20%22show_bubbles%22%3A%20true%2C%20%22metrics%22%3A%20%5B%22sum__SP_POP_TOTL%22%5D%2C%20%22compare_lag%22%3A%20%2210%22%2C%20%22limit%22%3A%20%2225%22%7D Does it make sense? Have I missing any package that I should install or configure anything? |
I keep debugging it. It seems that the constructor of the
Which has the correct param: The second time the constructor is called, the param is missing:
Am I missing something? |
Will be fixed in the next release as it's fixed in |
Ok, I'll try to install from the |
@mistercrunch could you tell me the exact commit that fixed the problem? |
I think I have it: |
Exactly. Closing. |
Hi all. I'm getting the same I tried using superset 0.17.4 and 0.17.1. No luck. I tried this viz on my custom dataset, and also tried it on the World Health demo data, by opening the Table and trying to create a new viz. Any ideas? |
I found that I got the same error (Metric 'None' is not valid) but was solved when I updated the Bubble Size field, even if I was not presenting bubbles (show bubbles check box unchecked). |
@Lomascolo 's advice works. |
Still getting this error as of today, 5/30/2018. |
Superset version: 0.17.0
The WorldMap visualization is not working in my installation. For instance, the slice '% Rural' that comes as example does not work. It shows an error bar with 'None'. And the server prints this backtrace:
When I try to add a WorldMap with my data I get another different error:
I tried to debug it by myself and found that
metrics
has an array like[my_var, None]
, so in the iteration, when it comes toNone
it failed to valid it as a metric. I tried to filter that in the code but then appeared another error:I suppose that the problems with the '% Rural' example and my data are differents, but I can't tell.
Also, I have added a key for the MapBox API, but I think this is irrelevant, as that map doesn't use it.
Thank you very much.
Update
The error with my own data was my fault, and it seems it has nothing to do with the WorldMap view.
The text was updated successfully, but these errors were encountered: