JSFiddle - React, Tailwind, and code Playground
by Roydon DSouza
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: 100px; height: 100px; margin: 0 auto"></div>
JavaScript
$(function() {
// Create the chart
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie',
margin: [0, 0, 0, 0],
spacingTop: 0,
spacingBottom: 0,
spacingLeft: 0,
spacingRight: 0
},
title: {
text: ''
},
yAxis: {
title: {
text: ''
}
},
plotOptions: {
pie: {
shadow: false
},
series: {
states: {
hover: {
enabled: false
}
}
}
},
tooltip: {
enabled:false,
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ this.y +' %';
}
},
legend:{
enabled: false
},
credits:{
enabled:false
},
series: [{
data: [
["Inventory",6],
["Data",4],
["Ad Serving",7],
["Other",7]
],
size: '125%',
innerSize: '80%',
showInLegend:false,
dataLabels: {
enabled: false
}
}]
});
});