Highcharts Demo

author(s): Torstein Hønsi

by AbhishekRohan

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: 'Stacked column chart'
    },
    xAxis: {
      categories: ["18Q3","18Q4","19Q1","19Q2","19Q3"]
    },
    yAxis: {
        min: 0,
        title: {
            text: 'Total fruit consumption'
        }
    },
    tooltip: {
        enabled : false
    },
    plotOptions: {
        column: {
            stacking: 'normal'
        }
    },
    series: [{
        name: "Open SR's",
        color:"red",
        
        data: [5, 3,0, 6, 3 ]
    }, {
        name: 'Open Esc',
        color:"green",
        data: [2, 2, 1, 3, 2]
    }]
});