mistercrunch closed pull request #4913: Fix country_map visualization URL
URL: https://github.com/apache/incubator-superset/pull/4913
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/superset/assets/src/visualizations/country_map.js
b/superset/assets/src/visualizations/country_map.js
index a5ab3c431d..09d325de67 100644
--- a/superset/assets/src/visualizations/country_map.js
+++ b/superset/assets/src/visualizations/country_map.js
@@ -132,7 +132,7 @@ function countryMapChart(slice, payload) {
.attr('x', 20)
.attr('y', 60);
- const url =
`/static/assets/visualizations/countries/${fd.select_country.toLowerCase()}.geojson`;
+ const url =
`/static/assets/src/visualizations/countries/${fd.select_country.toLowerCase()}.geojson`;
d3.json(url, function (error, mapData) {
const features = mapData.features;
const center = d3.geo.centroid(mapData);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services