axisYIndex: Number

Setting axisYIndex lets you choose to which Y axis the dataSeries should be attached to.
In case of Multi-Series or Combinational Charts, one can assign some series to first Y axis and rest to another axis.

This is helpful when dataSeries objects use different unit of measurement or range of data. By default, all series are plotted against first axis.

Default: 0
Options: 1,2,3…

  • axisYIndex is applicable only when axisY is array of axis objects.
  • When axisYIndex value is more than the number of Y-axis, it falls back to 0.

var  chart =  new  CanvasJS.Chart("container",
 data: [{
   axisYIndex: 1, 

Try it Yourself by Editing the Code below.

  Also See:    

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.