superset icon indicating copy to clipboard operation
superset copied to clipboard

Dont recognize iso column in my datasource.

Open CamiloRueda opened this issue 8 years ago • 5 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [ x] I have checked the superset logs for python stacktraces and included it here as text if any
  • [ x] I have reproduced the issue with at least the latest released version of superset
  • [ x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.24.0

Expected results

Can use the slice Country Map, specifically the map of Colombia by Department(State).

Actual results.

This is my data imagen This the error imagen Nevertheless, when I use the Colombian's map with the data of birth_france_by_region works the visualization. imagen

Steps to reproduce

To add a new country in country map tools, we need follow next steps :

1 You need shapfiles why contains data of your map. You can get this file in this site : http://www.diva-gis.org/gdata 2 You need to add ISO 3166-2 with column name ISO for all record in your file. It’s important because, it’s a norm for mapping your data with geojson file 3 You need to convert shapfile to geojson file. I use http://mapshaper.org/ 4 Put your geojson file in next folder : superset/assets/visualizations/countries with the next name : nameofyourcountries.geojson 5 You can to reduce size of geojson file ont this site : http://mapshaper.org/ 6 Go in file superset/assets/javascripts/explorev2/stores/controls.jsx 7 Add your country in component ‘select_country’ Example :

CamiloRueda avatar Apr 20 '18 21:04 CamiloRueda

Hi, I had the same issue when adding Portugal. You can't create a Country Map vis directly from the table. First you need to create a slice using the table view. Then you can switch to Country Map, and the ISO column will appear for selection. João

joaomg avatar May 03 '18 17:05 joaomg

Thanks !!! I'll try that !

CamiloRueda avatar May 08 '18 19:05 CamiloRueda

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Apr 10 '19 22:04 stale[bot]

I am implementing India's map. My query runs but I am unable to see any map. Can somebody guide me please how to resolve this?

D-Mahajan avatar Apr 11 '19 07:04 D-Mahajan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jun 10 '19 07:06 stale[bot]