COLLEGE DASHBOARD

by Kondal Durgam

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<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: 400px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: ''
    },
    subtitle: {
            text: '',
			style: {
                    fontSize: '14px',
                    fontFamily: 'Verdana, sans-serif'
            },
            x:-150
        },
    xAxis: {
        categories: ['IT', 'CSE', 'CIVIL', 'MECH','EEE', 'ECE']
    },
    credits: {
                enabled: false
            },
            exporting: { 
            	enabled: false
             },
    yAxis: [{
        min: 0,
        title: {
            text: ''
        }
    }, {
        title: {
            text: ''
        },
        opposite: true
    }],
    legend: {
        shadow: false
    },
    tooltip: {
        shared: true
    },
    plotOptions: {
        bar: {
            grouping: false,
            shadow: false,
            borderWidth: 0
        }
    },
    series: [{
        name: 'FEMALE',
        showInLegend: false,
        color: '#0f9cff',
        data: [
            ['IT', 95],
            ['CSE', 90],
            ['CIVIL',  66],
            ['MECH',86],
            ['EEE',76],
            ['ECE',  76]
           
        ],
        pointPadding: 0.1,
        pointPlacement: -0.2
        },{
        name: 'MALE',
        showInLegend: false,
        color: '#8deaf9',
        data: [
            ['IT',80],
            ['CSE',70],
            ['CIVIL', 65],
            ['MECH',75],
            ['EEE',65],
            ['ECE',54]
            
        ],
        pointPadding: 0.4,
        pointPlacement: -0.2
    }]
});