JSFiddle - React, Tailwind, and code Playground
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() {
// Create the chart
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie'
},
title: {
text: 'Browser market share, April, 2011'
},
legend:{
enabled:true
},
plotOptions:{
pie:{
size:'80%'
}
},
series: [{
name: 'Browsers',
data: [10,20,30,50],
innerSize: '60%',
showInLegend:true,
dataLabels: {
color: 'white',
distance: -25
}
}, {
name: 'Versions',
data: [10,20,30,50],
innerSize: '40%',
showInLegend:true,
dataLabels: {
color: 'white',
distance: -45
}
},{
name: 'Versions',
data: [{
y:10,
name:'name'
},20,30,50],
innerSize: '60%',
showInLegend:true,
dataLabels: {
color: 'white',
distance: -80
}
}]
});
});
});