Bluefire
Bluefire

Reputation: 14139

Highcharts.js - edit the axis of a chart without remaking it

I have a chart with numerical values on the X-axis, and I would like to "shift" its contents to the right, i.e. I want to increment each of the X-axis values by 1. I know that, in theory, I can just remove my current chart and make another one with the augmented X-axis, but is there another way without that step, somehow dynamically editing the axis values?

Upvotes: 0

Views: 52

Answers (1)

Nishith Kant Chaturvedi
Nishith Kant Chaturvedi

Reputation: 4769

you need to use add point method. refer http://api.highcharts.com/highcharts#Series.addPoint

 chart.series[0].addPoint();

demo fiddle from highchart API

Upvotes: 1

Related Questions