JOB PREF2

College Dashboard

by Kondal Durgam

HTML

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

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

JavaScript

Highcharts.chart('container', {

    chart: {
        type: 'column'
    },

    title: {
        text: ''
    },
	  credits: {
                enabled: false
            },
            exporting: { 
            	enabled: false
             },
    xAxis: {
        categories: ['BACHELOR', 'MASTER', 'DIPLOMA', 'DOCTORATE']
    },

    yAxis: {
        allowDecimals: false,
        min: 0,
        title: {
            text: ''
        }
    },

    tooltip: {
        formatter: function () {
            return '<b>' + this.x + '</b><br/>' +
                this.series.name + ': ' + this.y + '<br/>' +
                'Total: ' + this.point.stackTotal;
        }
    },

    plotOptions: {
        column: {
            stacking: 'normal'
        }
    },

    series: [{
        name: 'John',
        data: [5, 3, 4, 7],
        stack: 'male'
    }, {
        name: 'Joe',
        data: [3, 4, 4, 2],
        stack: 'male'
    }]
});