Monday 25 February 2019

How to add more metrics on the country_map in Apache-superset?

I am using country_map in for visualization purposes. When zooming in on a polygon, information from the columns appears inside of the polygon, like so:

map

There is only one available metric option to display: metric

Code for the metric update is found on this path:

superset/assets/src/visualizations/CountryMap/CountryMap.js

Code:

const updateMetrics = function (region) {
  if (region.length > 0) {     
    resultText.text(format(region[0].metric));
  }
};

How can I add more metrics to display inside the polygon?



from How to add more metrics on the country_map in Apache-superset?

No comments:

Post a Comment