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
- Highchart ctor doesn't return a Chart
- Angular HighCharts Update series
- Highcharts scatter set markers
- Proper x-axis for Highcharts stack group column
- Highcharts - stacked column - order series index dynamically for each category
- Pass Ajax data in highcharts Combination chart
- Highcharts stacked column: show total when a stack is hidden
- Highcharts Broken Line / Line Segment
- AngularJS for Highcharts with dynamic ajax data
- Highchart/ROR - Extract data from database table
- How to show only specific x-axis values on datetime axis in Highcharts
- Setting yaxis as logarithmic with Highcharts cakephp plugin
- Highcharts customization PHP/MySQL
- HighCharts Bug with LiveChart
- Loading JQuery dynamically but highcharts fails
- How to dynamically add point placement and point padding in fixed column chart (highcharts)
- How to skip a value in highcharts.js?
- Problems with updating c# variables in javascript?
- Issue with last column width in Highcharts
- Drawing a regression line in Highcharts using mx + b
- printing pie's dataLabels numbers with commas
- How to hide x and y axis line only in highchart?
- How to change aspect ratio and remove spacing in Highchart's gauge arc chart
- Dynamic highcharts pie chart with drilldown
- Change the color of legend symbol highchart
- Highcharts dashed line on x axis not going all the way across
- Highcharts : Point Formatting not working
- Highcharts 3.0 version changes in exporting options?
- how to display highchart graphic with data defined in html table?
- Load individual series data as clicked in legend