JSFiddle - React, Tailwind, and code Playground

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.setOptions({
    colors: ['#2F2E33', '#3A5199', '#D5D6D2', '#FFFFFF']
});

Highcharts.chart('container', {
    chart: {
        type: 'line'
    },
    title: {
        text: 'Total Faculty in Education, Fall 2015-Fall 2018'
    },
    subtitle: {
        text: 'Includes Tenure Track and Lecturers teaching in the School of Education'
        },
    credits: {
        enabled: false
    },
    xAxis: {
        categories: ['2015', '2016', '2017', '2018']
    },
    yAxis: {
    min: 0,
            max: 80,
            tickInterval: 10,

        title: {
            text: 'Number of faculty'
        }
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: true
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: 'Tenure Track faculty',
        data: [22, 21, 24, 22]
    }, {
        name: 'Lecturers',
        data: [43, 51, 42, 45]
    }, {
        name: 'Total faculty',
        data: [65, 72, 66, 67]
    }]
});