JSFiddle - React, Tailwind, and code Playground

by pixeloco

HTML

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

<div id="container" style="width: 500px; height: 300px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
            chart: {
                renderTo: 'container',
                type: 'pie'
            },
            colors: [
				'#ff6600',
                '#333300',
                '#660000'
			],
			credits: {
                enabled: false
            },
            title: {
                text: ''
            },
            yAxis: {
                title: {
                    text: 'Total percent market share'
                }
            },
            plotOptions: {
                 series: {
            		marker: {
	            	    states: {
		            	    hover: {
			                    fillColor: 'black'
		            		}
	            		}
            		}
                 }
			},
            tooltip: {
                formatter: function() {
                    return '<b>'+ this.point.name +'</b>';
                }
            },
            series: [{
                name: 'Time',
                data: [["sleep",20],["work",30],["play",10]],
                dataLabels: {
                    enabled: false
                }
            }]
        });
    });