ale4ko69
Posts: 15
Joined: Thu Jan 23, 2020 4:25 pm

inaccurate location of label with country name

Hi,
When working with Highcharts Map, I noticed some inaccuracies in the display location of country names
This can be seen in your example. And it's not just the UK. For example, Russia is indicated in a place that does not belong to it at all, and at the same time there is a lot of free space for its correct indication. It is possible that the label location calculations do not correctly use coordinates. And, as example, if a small piece of Russia is located separately, why does the indication of the country try to be tied to it and not to the larger part of the state?
Image
Image
jakub.s
Posts: 1075
Joined: Fri Dec 16, 2022 11:45 am

Re: inaccurate location of label with country name

Hi,

Thanks for the question!

You're right, it definitely shouldn't look that way.

However, I don't think it's a common behavior for the map charts: https://jsfiddle.net/BlackLabel/npo2uxyk/

Could you please reproduce this issue in JSFiddle and send me a link?

I'm afraid that only then will I be able to help.

Best regards,
Jakub
Jakub
Highcharts Developer
ale4ko69
Posts: 15
Joined: Thu Jan 23, 2020 4:25 pm

Re: inaccurate location of label with country name

This is reproduced in an example from Highcharts with a world map - world-highres.topo.json
https://jsfiddle.net/gh/get/jquery/1.11 ... ld-highres
jakub.s
Posts: 1075
Joined: Fri Dec 16, 2022 11:45 am

Re: inaccurate location of label with country name

Hi,

Thanks! You're right, it seems to be an issue.

You can track our progress on this issue here: https://github.com/highcharts/highcharts/issues/18004
Here's a fix: https://github.com/highcharts/highcharts/pull/18795

It should be solved within the nearest Highcharts release.

Best regards,
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Maps”