JSFiddle - React, Tailwind, and code Playground
by denbuzze
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: 200px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function() {
// Create the chart
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie'
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
title: {
text: 'Academic Status',
align: 'center',
verticalAlign: 'middle',
y: -5
},
plotOptions: {
pie: {
shadow: false
}
},
tooltip: {
formatter: function() {
return false;
}
},
series: [{
name: 'Browsers',
data: [["Complete",.33],["Incomplete",.66]],
size: '100%',
innerSize: '80%',
borderWidth: 0,
showInLegend: false,
dataLabels: {
enabled: false
}
}]
});
chart.setTitle({ text: 'New title '});
});