FTF Funnel

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/funnel.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: 410px; max-width: 600px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'funnel'
    },
    title: {
        text: 'First Time Freshmen Admissions Data, Fall 2018'
    },
    plotOptions: {
        series: {
            dataLabels: {
                enabled: true,
                format: '<b>{point.name}</b> ({point.y:,.0f})',
                color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black',
                softConnector: true
            },
            center: ['40%', '50%'],
            neckWidth: '20%',
            neckHeight: '30%',
            width: '80%'
        }
    },
    legend: {
        enabled: false
    },
    series: [{
        name: 'First Tike Freshmen',
        data: [
            ['Applied to SSU', 14478],
            ['Admitted', 12980],
            ['Matriculated', 1740]
        ]
    }]
});