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
- Highcharts 3D Pie color rendering
- When I click on first pie on the page, the second appears, but then I cannot do anything with the first
- Change only "Input Date" text of HIghStock Chart without setExtrerems?
- High Charts add variance instead of values
- How can I replace the term "Week" in highcharts Gantt Chart Timeline?
- Fixing/discounting a data series when changing chart-type in Highcharts
- Selecting different types of charts
- Prevent y-zoom for specific series/y-axis on highcharts
- Making Highcharts look like progress bar with more than one series
- Highmaps map is not loading? Why isnt loading?
- Highcharts - synchronized-charts crosshair line and circle point display
- Opacity colors in Highcharts (with default color)
- D3Js donut chart, avoid label text overlay's
- R highcharter legend based on point color
- Create log scale in highstock
- Use Json array to populate chart
- can not display date properly after extract json data, highcharts
- How to make HighStock / HighChart scroll bar location default to the left hand side?
- Create Phantomjs export server to convert highchart to image base64 string
- Using highcharter to return multiple data with Shiny
- How to center the y-axis label horizontally in Highcharts?
- How to dynamically addEvent to Highcharts series with multiple charts?
- Highcharts Tooltip - Access "z" value in series data array
- Highstock Flags Series with stacked data
- incorrect generation of highcharts
- How to show multiple Highcharts graph on one page
- Integrating Highcharts into Weebly
- JSFiddle API examples are broken
- How to zoom in Highcharts Android
- Error in chart legend highchart