JSFiddle - React, Tailwind, and code Playground

by Torstein Hønsi

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.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: {
	        type: 'columnrange',
	        inverted: true
	    },
	    
	    title: {
	        text: 'Temperature variation by month'
	    },
	    
		subtitle: {
	        text: 'Observed in Vik i Sogn, Norway, 2009'
	    },
	
	    xAxis: {
	        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
	    },
	    
	    yAxis: {
	        title: {
	            text: 'Temperature ( °C )'
	        }
	    },
	
	    tooltip: {
	        valueSuffix: '°C'
	    },
	    
	    plotOptions: {
	        columnrange: {
	        	dataLabels: {
	        		enabled: true,
	        		formatter: function () {
	        			return this.y + '°C';
	        		}
	        	}
	        }
	    },
	    
	    legend: {
	        enabled: false
	    },
	
	    series: [{
	        name: 'Temperatures3',
	        data: [
                [0, 0, 5.6]
			]
	    },{
	        name: 'Temperatures',
	        data: [
                [1, 6.7, 9.4],
				[2, 6.7, 8.5],
				[3, 6.5, 9.4],
				[4, 6.4, 19.9],
			]
	    },{
	        name: 'Temperatures2',
	        data: [
				[1, 9.4, 10.3],
				[3, 8.5, 11.9],
				[4, 9.4, 12.3],
				[5, 19.9,23.3],
			]
	    }]
	
	});
    
});