Strgt
Posts: 37
Joined: Fri Dec 03, 2021 2:11 pm

English Version Of German-Mapchart

Hello,

For the English version of the German-Mapchart, I need a translation of this array :
[ ["de-ni", 1 ],
["de-sh", 1],
["de-be", 2 ],
["de-mv", 3 ],
["de-hb", 4 ],
["de-sl", 1 ],
["de-by", 6 ],
["de-th", 7 ],
["de-st", 8 ],
["de-sn", 9 ],
["de-bb", 1],
["de-nw", 1],
["de-bw", 1],
["de-he", 1],
["de-hh", 1],
["de-rp", 1] ]
so that the names of the states are displayed in English on the map.

I would be appreciate it if you could help me.

Sincerely yours
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: English Version Of German-Mapchart

Hello Strgt,

Thanks for contacting us with your question!

You can change the displayed country names in data label and tooltip by using formatter function:

Demo:
https://jsfiddle.net/BlackLabel/1m630r4w/

API Reference:
https://api.highcharts.com/highmaps/ser ... .formatter
https://api.highcharts.com/highmaps/too ... tFormatter

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
Strgt
Posts: 37
Joined: Fri Dec 03, 2021 2:11 pm

Re: English Version Of German-Mapchart

Hello,

Thanks for your help. But I use the English names of the states in other parts of my program besides the map tooltip. (For example, I have a dynamic title from the states, which can be changed by clicking on the states, etc.).
Do these hc-Keys not have an English translation? That I can use them in all parts of my program?

Regards!
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: English Version Of German-Mapchart

Hi,

The names are not dependent on the keys, but available data in the used map.
The English names on the following map: https://code.highcharts.com/mapdata/cou ... /de-all.js are available at 'alt-name' property.

Demo:
https://jsfiddle.net/BlackLabel/euo8h2wb/

Feel free to ask any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Maps”