score:1
Accepted answer
As Deep 3015 suggested: Axis.setExtremes
can be used for this.
This example shows how to maintain originally selected time interval: http://jsfiddle.net/kkulig/q2u679zg/
var xAxis = chart.xAxis[0],
ex = xAxis.getExtremes(),
interval = ex.max - ex.min,
newPoint = [Date.UTC(2017, 0, 5), 7];
chart.series[0].addPoint(newPoint);
xAxis.setExtremes(newPoint[0] - interval, newPoint[0]);
Source: stackoverflow.com
Related Query
- Scroll bar alway to right when updating highstock graph
- How do I prevent Highstock right range handle keep slipping off the max value when adding data
- Highcharts / Highstock scroll bar and Zoom issue
- Highstock stacked bar chart with slider overlayed on the graph
- Highstock scroll bar-Single scroll bar for 4 charts
- Strange character in the Highstock source code
- stacked bar graph yAxis plotbands width is changing when toggle/add/remove the series dynamically
- How to create a drilleable bar graph in jsp page using open source charts API
- Highcharts Bar Graph Remove Category when all bar values for category equal 0
- HighCharts: how to update bar color when updating the point value
- Graph getting hidden while zooming in ( using the zoom scroll bar )
- The graph of hichart would miss column at left or right when hichart zoomed
- Highcharts / Highstock scroll to right
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- How to make HighStock / HighChart scroll bar location default to the left hand side?
- In highstock 1.3.0, when zooming in full, the graph draws all messed up
- Highstock (Highchart) 1.3.1 behaves erroneously when legend is aligned to right
- How to show bar of graph in different colour when it reaches threshold level in high charts in JS?
- High charts bar chart label overlaps with the graph when labels are long
- HighStock y-axis labels changing by itself when horizontal scroll moves
- Highstock graph is not showing when only single data is present
- How to control Two chart of highstock with scroll bar
- Highchart specific width stack column bar graph
- HighStock : Remove Zoom bar
- how can I move yAxis labels from Right of chart to left of chart in highstock
- How to hyperlink bar graph in highcharts
- Highcharts stacked bar graph as timeline
- How to change axis label size when exporting in Highcharts / Highstock
- Trigger an event when i scroll the scrollbar in highchart?
- Highcharts stacking bar chart border not displaying on right side
More Query from same tag
- rCharts: Change the individual point colors of a time series plot (Highcharts)
- High charts showing the composition of count as tooltip
- JSON output for highcharts
- how to get index of a point in Highcharts to use in an event?
- Highstock charts with Google Spreadsheet JSON
- Highcharts not showing all labels for rows
- Ajax JSON response into HighCharts
- Highcharts: How to make curve start outside of the visible view horizontally?
- Chart issues with *ngIf in angular 2
- Highcharts do not render
- HighCharts numericSymbols in French and German
- Highcharts hide categories that don't fit
- split display legend in highcharts
- Vertical align legends in highcharts with two column
- Text Ellipsis in bubble chart
- Highcharts Highmaps How to change value for color axis in map bubble
- How to show labels selectively in certain points in Line chart of HighCharts
- Toggle Highcharts plotLine with button
- Add Series in Highcharts on the basis of user input
- Highcharts Bubbles - how do I change bubble background and line color?
- Is there any available option in Highcharts about displaying of label fully?
- Convert html 5 to PDF in MVC 3
- How do I set the highchart gantt headers as fixed when I scroll vertically
- Highcharts sort stacked bar
- How can I get access to a Highcharts chart through a DOM-Container?
- Highcharts datetime column bars are not lining up correct
- Set Highchart cursor/pointer with a click on a gmap polyline point
- Highcharts bug with labels
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- Highcharts - colorByPoint for serie.scatter.marker