Highcharts Demo
author(s):
Torstein Hønsi
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container"></div>
CSS
#container {
width: 400px;
height: 300px;
margin: 0 auto;
}
JavaScript
Highcharts.chart('container', {
chart: {
type: 'gauge'
},
pane: {
startAngle: -150,
endAngle: 150
},
yAxis: {
min: 0,
max: 100
},
plotOptions: {
gauge: {
dial: {
radius: '100%',
backgroundColor: 'silver',
borderColor: 'black',
borderWidth: 1,
baseWidth: 10,
topWidth: 1,
baseLength: '90%', // of radius
rearLength: '50%'
}
}
},
series: [{
data: [80]
}]
});