JSFiddle - React, Tailwind, and code Playground

by Ramkumar Pillai

HTML

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

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

JavaScript

$(function () {
    var chart;
    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'spline'
            },
            title: {
                text: 'Column chart with negative values'
            },
            xAxis: {
                categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
            },
            yAxis: {
                title: {
                  enabled: true,
                  text: ' Downlink(%) Uplink/Span(%)' 
                },
                labels: {
                    formatter: function(){
                        return (Math.abs(this.value)) + 'M';
                    }
                }
               
            },
            tooltip: {
                formatter: function() {
                    return ''+
                        this.series.name +': '+ Math.abs(this.y) +'M';
                }
            },
            credits: {
                enabled: false
            },
            series: [{
                name: 'Errors One UP',
                data: [5, 9, 4, 7, 2]
            }, {
                name: 'Errors One Down',
                data: [5, 3, 4, 4, 2]
                
            }, {
                name: 'Errors two UP',
                data: [3, 6, 4, 2, 5]
            }, {
                name: 'Errors two Down',
                data: [3, 4, 4, 3, 5]
            }]
        });
    });
    
});