Erinnjoy
Posts: 14
Joined: Tue Sep 27, 2016 8:31 pm

How do I create multiple axes?

How do I create a line chart with multiple axes?
pawel_d
Posts: 1910
Joined: Thu Jun 02, 2016 10:28 am

Re: How do I create multiple axes?

Hi Erinnjoy,

As Highcharts API says, yAxis/xAxis can be an array of objects, so you can have as many axis as you want. Look at the demo below. Notice how the second series is connected to secondary xAxis and yAxis.

API Reference:
http://api.highcharts.com/highcharts/yAxis

Example:
http://jsfiddle.net/d_paul/r890aact/7/

Regards.
Paweł Dalek
Highcharts Developer

Return to “Highcharts Cloud”