Open ghost opened 5 years ago
The countries which have a country code displays correct with the number. Countries without a value display's as undefined. My script is in the minified version. What to add that I can suppress the countries without a value?
I was searching long time, checked the pull requests and issues, but I can't find the answer for me.
Hi Ghost,
You can use the following code:
onRegionTipShow: function(e, el, code){ if(gdpData[code] === undefined) el.html(el.html()+' (no orders)'); else el.html(el.html()+' (Orders: '+gdpData[code]+')'); }
Add this to the parameters. Enjoy!
The countries which have a country code displays correct with the number. Countries without a value display's as undefined. My script is in the minified version. What to add that I can suppress the countries without a value?
I was searching long time, checked the pull requests and issues, but I can't find the answer for me.