MCB
Posts: 1
Joined: Thu May 13, 2021 10:18 pm

chart.update does not draw line to last point

I am polling for data from a web service and using it to update my Highstock instance.

To update my chart, I am updating the options object originally passed to the Highstock constructor and then calling `chart.update(newOptions, true, true, true)`.

The constructor render always works well. The call to chart.update, however, intermittently has the chart line miss the series' last point. To see what this looks like please refer to the screenshot.

I am failing to understand why this happens since the issue is intermittent and some update calls work fine.

Any idea what could be causing this issue?

Using Highstock JS v9.0.1
Attachments
Screen Shot 2021-07-09 at 2.37.14 PM.png
Screen Shot 2021-07-09 at 2.37.14 PM.png (26.17 KiB) Viewed 409 times
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: chart.update does not draw line to last point

Hello MCB!

Welcome to our forum and thanks for contacting us with your question!

Unfortunately, it is hard to tell you what could be done without taking look at your code. Could you reproduce the issue in an online editor that I could work on? In the link below you can find a basic template. :-)

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

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”