score:2
Accepted answer
if i'm following you, you want to shift off the start of the series, but leave the xaxis alone?
you can just set an xaxis min:
xaxis:{
min: 0
}
see example.
edits
in response to your comment. i think the easiest thing to do would be to shift the data yourself and then use setdata
to redraw the series.
newdata = [];
var seriesdata = chart.series[0].data;
// shift the data
for (var i = 0; i < (seriesdata.length - 1); i++){
newdata.push({x: seriesdata[i].x, y: seriesdata[i+1].y});
}
// new point for last
newdata.push({x: seriesdata[seriesdata.length - 1].x,
y: math.random() * 100});
chart.series[0].setdata(newdata, true);
Source: stackoverflow.com
Related Query
- How to shift data using Series.addPoint without shifting x axis values in highcharts
- How to feed series data that has x axis and y axis values in line highcharts?
- How to have multiple highcharts with different series data in vuejs without repeating code
- how to hide highchart x - axis data values
- How to hide one series data info in tooltip using highcharts
- How to place labels on opposite Y axis in Highchart without a second series
- Highcharts - how to create multiple y axis and group the data series
- How do you process large amounts of data without using a database?
- How to map values within a data series to different y-axes?
- How could you supply multiple series to a line chart in R shiny using highcharter package and without hardcoding the series?
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- How to change the data series for highchart using a dropdown list
- How to remove axis labels without data points in Highcharts?
- How can I change data series dynamically in HighCharts without overwriting initial series?
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- How to return every nth row from dataset using postgresql to control a Highcharts data series
- How can i set the json encode result to the highchart series data using getJSON
- How to add multiple axis without multiple series on highchart?
- How to set Highcharts data series in x-axis using crosshairs?
- How to spread Y Axis values in "area" chart using HighCharts
- How to label xAxis with series data using Highcharts?
- How to rotate javascript highchart line graph -90 degree without affecting the data values
- how to dynamically update series data using ember-highcharts
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- How to fetch data only from hovered series when using multiple series highchart?
- Highchart Callback Refactoring not working, and how to display multiple series using multiple Ajax data
- Hiding a Highcharts series without using the legend
- How to get multiple series data in tooltip highcharts?
- How do I dynamically change a data point in Highcharts using JavaScript
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
More Query from same tag
- highstock tough scrolling
- Highcharts cloud issue with data source when duplicating chart
- Highchart xaxis date displayed in number format issue
- Highcharts: legendItemClick: make background transparent instead of deleting it
- How to use images for charts in Highcharts
- highchart save image using exporting java and phantomjs
- Selectable axis labels on highcharts
- xAxis tickInterval throwing error in fullscreen
- highcharts not showing on heroku using python flask app
- How to add categories' separation lines
- Highcharts / Highstock step line with gaps?
- Cannot Use Two Splines in Highchart
- How to get the array format to function on x axis labels?
- High Charts export image on the server
- Set properties for a cell in a heatmap
- Highcharts CDN issue with IE8
- Get data to NodeRed from Homepage (HighCharts)
- Y axis values merging with candles in highcharts
- properly render an array of numeric values, not an array with strings
- Highcharts column chart with data from mongodb
- Highstock inputDateParser fires three times
- How to hide one series data info in tooltip using highcharts
- highcharts.js change color of the lines in the background
- Extended Highcharts Boxplot to include mean line - how to remove extra line on resize?
- Highcharts exporting SVG with data pre-selected
- HighCharts exporting filename
- missing value in highcharts line graph results in no line, just points
- Creating dynamic Highcharts based on an array
- 2 chart HighChart Print to PDF
- Highstock - Minimal Zoom