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
- Draw JSON result in highchart
- Highcharts - per customer- even small date/range increments must be visible
- Excel charting to JavaScript
- Remove HighChart Rendered Button
- Is it possible to customize the features of stack parameter in highchart.js library
- dynamically change label to show the y-axis min and max value
- pie chart highcharts from django query
- Highcharts donut pie not showing hover indicator if the slice color is white
- highcharts- stacked bar, how can I make the chart cover the width 100%?
- Utilizing full height in highcharts bubble chart
- Highcharts - Continuous line with centered step (start before the first point)
- High chart date time conversion showing wrong values
- Highcharts: yAxis duration in hours resets every 24h
- Customize captions
- properly render an array of numeric values, not an array with strings
- Highcharts stylemode and colorByPoint
- Highcharts, export/copy image to clipboard
- How to get time interval of candlestick in candlestick chart in highchart
- Change shape color in Highmaps programmatically
- How to get different chart types in same plot
- Highcharts/highstock animate series when change the time period button
- Overlapping and rounded stack in stacked column graph in Highcharts
- Populating data to Highstock
- How to remove the halo/glow around a marker upon hovering a series in Highcharts
- Interaction with multiple charts in a page
- sync width of xAxis between two charts, when one chart has multiple yAxis
- How to get rid of Function calls are not supported in decorators in Angular aot compiling?
- Series Data for column high chart
- highcharts range lines issue
- Fixing dataLabel position in pie charts Highcharts even when data is changing