Electronic Circuit
Electronic Circuit

Reputation: 335

Highcharts dual y-axis on the left (column chart)

Can anyone show me jsfiddle example how to make dual y-Axis on the left side of a column chart for high chart (html5)?. P/S i know how to make multiple y-Axis on the right so no need for this

Upvotes: 0

Views: 126

Answers (1)

Wojciech Chmiel
Wojciech Chmiel

Reputation: 7372

That's the solution:

Highcharts.chart('container', {
	chart: {
  	type: 'column'
  },
  yAxis: [{
  	title: {
    	text: ''
    }
  }, {}],
  series: [{
  	yAxis: 0,
    data: [
      439,
      525,
      571,
      696,
      970,
      119,
      137,
      154
    ]
  }, {
  	yAxis: 1,
  	data: [
    	234,
      123,
     	444,
      322,
      543,
      657
    ]
  }],
});
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container"></div>

Demo:

  • jsfiddle.net/BlackLabel/fhgs4cpd

Upvotes: 1

Related Questions