JSFiddle - React, Tailwind, and code Playground

by Muhammad Mushtaq Sheikh

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: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({

		colors: ['#ba0000'],
        chart: {
            type: 'column',
			spacingBottom: 10,
        	spacingTop: 30,
       	 	spacingLeft: 0,
       	 	spacingRight: 10,

			style: {
            	fontFamily: 'MuseoSans-500',
				fontSize: '14px'				
        	}		
			
        },
		
        title: {
            text: ''
        },
        subtitle: {
            text: ''
        },
        xAxis: {
            categories: [
                'YTD',
                'QTD',
                'Last Period'
            ],
			labels: {
                style: {
                    fontSize:'14px'
                }
            }			
        },
        yAxis: {
            min: 0,
            title: {
                text: '%'
            },

            plotLines: [{
                color: '#0054a6',
                width: 2,
                value: 48,
                dashStyle: 'Dash',
                zIndex: 10,
  			label : {
                        text : 'AVG'
                    }				
            },
			
			
			
			{
                color: '#00ed99',
                width: 2,
                value: 65,
                dashStyle: 'Dash',
                zIndex: 10,
				label : {
                        text : 'GOAL',
						
                 }	
				 
           
				}]

        },
		
		
		
		credits: {
     		 enabled: false
  		},
        tooltip: {
            headerFormat: '<span style="font-size:1.1em">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0"></td>' +
                '<td style="padding:0"><b>{point.y:.1f}%</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            series: {
                pointPadding: 0,
                groupPadding: 0,
            }
        },
        series: [{
            data: [57, 63, 62],
			

        }]
    });
});