markmarkoh / datamaps

Customizable SVG map visualizations for the web in a single Javascript file using D3.js
http://datamaps.github.io
MIT License
3.78k stars 1.01k forks source link

map.labels({'customLabelText': newLabels}) is not working as expected #270

Closed nikhileshcs closed 8 years ago

nikhileshcs commented 8 years ago

Only the default values are being displayed.

I've created the plnkr with the default example of custom-labels. It is not working yet.

Check this plnkr

https://plnkr.co/edit/ManO6mgFreewTRnA32rY?p=preview

markmarkoh commented 8 years ago

@nikhileshcs Switch to 0.4.4 for that functionality:

<script src="https://datamaps.github.io/scripts/0.4.4/datamaps.usa.min.js"></script>
bigabdoul commented 4 years ago

@nikhileshcs Switch to 0.4.4 for that functionality:

<script src="https://datamaps.github.io/scripts/0.4.4/datamaps.usa.min.js"></script>

Does this mean that the labels method works only for the USA map? How about adding labels to any map?