JSFiddle - React, Tailwind, and code Playground
by moppa
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
zoomType: 'xy'
},
title: {
text: 'Omsättning och rörelseresultat'
},
xAxis: [{
categories: ['8/9', '9/10', '10/11', '11/12', '12/13']
}],
yAxis: [{ // Primary yAxis
labels: {
format: '{value}',
style: {
color: '#333'
}
},
title: {
text: 'Omsättning',
style: {
color: '#333'
},
align: 'high',
offset: 0,
rotation: 0,
y:-15
},
min:0
}, { // Secondary yAxis
title: {
text: 'Resultat',
style: {
color: '#333'
}
},
labels: {
format: '{value}',
style: {
color: '#333'
}
},
opposite: true,
min:0
}],
tooltip: {
shared: true
},
legend: {
layout: 'vertical',
align: 'center',
verticalAlign: 'bottom',
floating: false,
backgroundColor: '#FFFFFF'
},
series: [{
name: 'Nettoomsättning, MSEK',
color: '#4572A7',
type: 'column',
data: [4445,3680,4418,5200,5403]
}, {
name: 'Rörelseresultat, MSEK',
color: '#89A54E',
type: 'line',
yAxis: 1,
data:...