Highcharts Demo

author(s): Torstein Hønsi

by Kathryn Atwood

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: 'line'
    },
    title: {
        text: 'Sonoma State Percent of All Hispanic/Latino Undergrad Enrollment By Race & Ethnicity'
    },
    subtitle: {
        text: ''
    },
    xAxis: {
        categories: ['Fall 2012', 'Fall 2013', 'Fall 2014', 'Fall 2015', 'Fall 2016']
    },
    yAxis: {
        title: {
            text: 'Percentage'
        }
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: true
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: 'Hispanic/Latino Undergrad Enrollment',
        data: [22, 25, 28, 31, 33]
    }]
});