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
Calling setData on Map Series throws an error with pattern-fill.js #19323
Comments
Hi @SyedTayyab99! I'm unable to recreate that locally. Will you be able to prepare a minimal demo in some online code editor? |
Hi @karolkolodziej Thanks a lot for your response. Let me try that |
There is a lot of custom code in your example shared initially. It would be great if you can reduce it ;) |
@karolkolodziej Please check the following fiddle. Once you click on the "Reload Data" button, you'll be able to see the issue. https://jsfiddle.net/SyedTayyab/an4ocdsp/ Please feel free to let me know if you need anything else from my side. |
Thank you @SyedTayyab99 for the demo. Internal note: highcharts/ts/Extensions/PatternFill.ts Lines 573 to 579 in 82e2e12
|
Hi @karolkolodziej please let me know if there is a work around or a patch that I can use in the meantime? |
Dear @karolkolodziej , Hope this message finds you well. Thanks |
@karolkolodziej your quick action and feedback are highly appreciated! |
Hello guys! I have prepared a workaround for that issue by overwriting Live demo: https://jsfiddle.net/BlackLabel/w8z3fv4k/ |
Expected behaviour
When series[0].setData() function is called, it should update the data of the series.
Actual behaviour
The call throws the following error
Uncaught TypeError: Cannot read properties of undefined (reading 'chart')
at r.calculatePatternDimensions (pattern-fill.src.js:169:36)
at R. (pattern-fill.src.js:417:21)
at highmaps.src.js:1748:25
at Array.forEach ()
at e (highmaps.src.js:1745:17)
at H.complexColor (highmaps.src.js:9664:17)
at H.fillSetter (highmaps.src.js:9993:21)
at H. (highmaps.src.js:9586:29)
at C (highmaps.src.js:1413:21)
at H.attr (highmaps.src.js:9564:21)
Steps to reproduce
I am attaching the files being used. On line 577, there is a call to "hchart.series[0].setData(data)" which results in error.
live-data.zip
Product version
Latest Versions
Affected browser(s)
All browsers
The text was updated successfully, but these errors were encountered: