score:2
Accepted answer
Everytime you add a point, I'd check if the 1st point was < however far back you want to go. If it is, remove it.
if (chart.series[0].data[0].x < time cutoff) {
chart.series[0].data[0].remove();
}
Since you're doing a consistant time interval, you should be safe with just checking the 1st point.
http://api.highcharts.com/highcharts#Point.remove()
Another option based on the comments above:
var bShift = false;
if(!bShift && chart.series[0].data[0].x < time cutoff)
bShift = true;
chart.series[0].addPoint(point, true, bShift);
Source: stackoverflow.com
Related Query
- Chart series fixed range
- Highchart multiple column range in same series on bar chart
- How to create a column range chart in Highcharts using range and navigator functions?
- Highchart Area Range chart with gradient that follows the line
- Displaying multiple series in the navigator of an HighStock chart
- highcharts - chart names for multiple pie chart series in one chart
- Change series data dynamically in react-highcharts without re-render of the chart
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts - Scatter chart with a line connecting the dots in the series
- Need stacked column chart with multiple series
- Use single color for all series in the same chart
- Highcharts chart going blank on zoomType: 'x' area range zoom?
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How to set default range selected on chart draw in Highcharts/Highstock
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- Showing Context Menu on right click of High Chart series
- Chart series point added not sync with X axis
- High chart - Column Range Chart with Time range. How to get tooltip as Start and End time
- How to use add series and update methods in the high chart wrapper for angular?
- Highcharts - Remove first marker from Area chart in every series
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- Highcharts: show series on legend but hide on chart
- unable to get series id in HighCharts chart
- Adding date range filter to Highcharts chart
- Highstock range approximation on spline series
- How to dynamically add point placement and point padding in fixed column chart (highcharts)
- Highcharts - Rotate pie chart aligning the clicked section to a fixed point (180°)
- Highcharts stock chart - Technical Indicators - Stock price is missing in the tooltip when selecting the 'All' range
- Change chart type and redraw with multiple series in Highcharts
- Chart rendering issue when hiding all series via clicking on legends
More Query from same tag
- Adding options to the Highcharts on button click
- How to create packedbubble with HighchartsReact
- how to change bar hover color of highchart dynamically?
- Highcharts - remove times between dates on a datetime xaxis type
- Unable to Export HighCharts from IE
- Vertical line within bars of a stacked bar chart using recharts or highcharts
- How do I add a dropdown to change endRow value in a chart displaying date from an HTML table
- How to add two different mouse over for two different type of series in same chart?
- Highchart from select rows in HTML table
- Highchart inner donut name as header for outer donut tooltip
- Why I cant put the highcharts.chart in render?
- HighCharts - destroy before writing a new chart (to prevent memory leak)
- How can I display my high-chart correctly and import data?
- How to switch from 24hr to 12hr clock in Highstock chart?
- Highcharts not aligning to ticks
- Different color to same series line in highstock graph?
- Javascript HighCharts Math Operations in ToolTip
- Use.js to set the height of highcharter plot and shinydashboard box
- Why am I seeing two different point types in Highcharts?
- angular 2 Highcharts Stock Chart differences
- Sorting data from database, to use in chart. PHP
- Is possible to change "lineColor" in 3d charts?
- Highcharts bubble chart datalabels not display
- create bubble chart (Highcharts) with rCharts package
- Dynamically update Highcharts chart in react
- With highcharts, is that possible to add dataLabels below column?
- Callback and Testing Highcharts
- highcharts check if a piechart section is selected
- Connecting two points in a graph
- how can we make bar width dynamic in highcharts?