JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/solid-gauge.src.js"></script>
<div id="gauge" style="height:242px;"></div>
CSS
body {
background: lightblue;
}
JavaScript
$(function () {
$('#gauge').highcharts({
chart: {
type: 'solidgauge',
backgroundColor: '#fff'
},
title: null,
pane: {
center: ['50%', '80%'],
size: '130%',
startAngle: -90,
endAngle: 90,
background: {
backgroundColor: '#FFF',
innerRadius: '90%',
outerRadius: '105%',
shape: 'arc',
borderColor: '#fff'
}
},
tooltip: {
enabled: false
},
// the value axis
yAxis: {
min: 0,
max: 100,
stops: [
[0.1, '#e74c3c'], // red
[0.5, '#f1c40f'], // yellow
[0.9, '#2ecc71'] // green
],
minorTickInterval: null,
tickPixelInterval: 400,
tickWidth: 0,
gridLineWidth: 0,
gridLineColor: 'transparent',
labels: {
enabled: false
}
},
series: [{
data: [83],
innerRadius:'120%',
radius: '110%'
}, {
data: [50],
innerRadius:'110%',
radius: '100%'
}, {
data: [19 ],
innerRadius:'100%',
radius: '80%'
}]
});
});