Hi @mateusz.b
Thank you. That was exactly what I was looking for.
I've a follow up question though.
I've observed 3 types behaviour with dynamic-update highstock chart as mentioned below (
https://www.highcharts.com/demo/stock/dynamic-update)
1. When slider is extreme right - Slider remains at right side and chart moves towards left as new points are getting added
2. When slider is in middle - Only Slider moves towards left but once slider reaches extreme left chart also starts moving towards left
3. When slider is in extreme left - Slider remains in extreme left but chart loses data points and keeps on moving left.
Now in the 2nd and 3rd scenarios when slider is in middle and when in extreme left, I don't want the chart to keep moving left side even though new data points are being added. To put it simply I want to show real time updates on the chart only when slider is in extreme right position and in all other cases I just wanna show static data for that time period.
Things I tried -> I tried using afterSetExtreme callback to leverage event.min and event.max to set data inside chart which lies between min and max but this doesn't seem to work.
Please suggest me if there's any other solution.