JSFiddle - React, Tailwind, and code Playground

by andrei

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>

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

JavaScript

$(function () {

    $('#container').highcharts({

        chart: {
            polar: true,
            type: 'line'
        },

        title: {
            text: 'Nokia vs Everbridge',
            x: -80
        },

        pane: {
            size: '80%'
        },

        xAxis: {
            categories: ['Interesting/Challenging', 'Work/Life Balance', 'Income', 'Impact', 'Benefits', 'Career potential'],
            tickmarkPlacement: 'on',
            lineWidth: 0
        },

        yAxis: {
            gridLineInterpolation: 'polygon',
            lineWidth: 0,
            min: 0
        },

        tooltip: {
            shared: true,
            pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>'
        },

        legend: {
            align: 'right',
            verticalAlign: 'top',
            y: 70,
            layout: 'vertical'
        },

        series: [{
            name: 'Nokia',
            data: [9, 7, 8, 4, 8, 6],
            pointPlacement: 'on'
        }, {
            name: 'Everbridge',
            data: [7, 8, 6, 8, 4, 8],
            pointPlacement: 'on'
        }]

    });
});