New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data module removing 0's in fips codes #16920
Comments
Hi @kai2468 Thank you for reporting the problem. Internal note / more details: highcharts/ts/Extensions/Data.ts Lines 1150 to 1152 in 8c4f1a2
So basically, if it is parsable it will be parsed, so there is no API option to prevent this. A fix for the bug could be to add PoC (with modified code marked with |
Hi, any news on this one? |
Expected behaviour
The data module does not remove the first 0 in the fips code and the map renders correctly
Actual behaviour
The data module removes the first 0 in the fips code and the map does not render any of its points.
An example of a fips code in the Alabama map: 01007
The data module seems to be removing the first 0 in the codes, and so Highmaps cant find the right code to link to.
If you log mapKey and mapMap in the line I've linked below, you'll see that the codes do not match. I assume the data module is doing some custom parsing before it gets to this point and the 0 is getting removed because of it.
https://github.com/highcharts/highcharts/blob/master/ts/Series/Map/MapSeries.ts#L1057
Live demo with steps to reproduce
https://jsfiddle.net/vf2yeL5g/
Product version
Latest
The text was updated successfully, but these errors were encountered: