I have been looking for a long time why I get error messages when I use the chart lineMarkers. I get a lot of NaN Errors when I hover the mouse over the series point.
Today I found out that it has to do with calling the chart.draw() function before setting the lineMarkers when reading the chart via Json. But if I build the chart via api calls, this order doesn't matter and I get no errors.
Here I have built a small comparison: https://playground.anychart.com/IuY9QbAl/2
I now know how to avoid this situation, but I would still like to know if this is a bug.
Thanks ahead.
We are glad to notify you that AnyChart 8.9.0 has just released and it includes a fix for the issue you reported.
Now creating a Line Marker after chart.draw()
call doesn't lead to JS exceptions and errors. The chart works as expected.
You can download the latest version from the download page - https://www.anychart.com/download/products/ Or update your links to the binaries on our CDN - https://cdn.anychart.com/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.