Solid gauge chart + Marker
zIndex in plotband
by amrutaJgtp
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/solid-gauge.js"></script>
<div style="width: 600px; height: 600px; margin: 0 auto">
<div id="container-speed" style="width: 600px; height: 600px; float: left"></div>
</div>
CSS
.highcharts-yaxis-grid .highcharts-grid-line {
display: none;
}
JavaScript
var gaugeOptions = {
"chart": {
"inverted": false,
"backgroundColor": "rgba(255,255,255,0)",
"plotBackgroundColor": "rgba(255,255,255,0)",
"zoomType": "xy",
"resetZoomButton": {
"theme": {
"fill": "#ffffff",
"stroke": "#003ce1",
"r": 0,
"style": {
"color": "#003ce1",
"cursor": "pointer",
"fontSize": "0.714rem",
"fontFamily": "Lucida Sans Unicode,Verdana,Helvetica,Arial"
},
"states": {
"hover": {
"fill": "#003ce1",
"stroke": "#003ce1",
"style": {
"color": "#ffffff",
"fontSize": "0.714rem",
"fontFamily": "Lucida Sans Unicode,Verdana,Helvetica,Arial"
}
}
}
}
}
},
"title": {
"text": ".",
"style": {
"color": "rgba(255, 255, 255, 0)",
"fontSize": "1px"
}
},
"tooltip": {
"enabled": true,
"shared": false,
"borderWidth": 1,
"borderRadius": 1,
"backgroundColor": "#ffffff",
"style": {
"color": "#000000",
"fontSize": "1rem",
"fontFamily": "Lucida Sans Unicode,Verdana,Helvetica,Arial",
"fontWeight": "normal",
"fontStyle": "normal",
"textDecoration": "none"
},
"crosshairs": [null, null]
},
"plotOptions": {
"solidgauge": {
"animation": {
"duration": 700
},
"cursor": "pointer",
"allowPointSelect": true,
"showInLegend": true,
"turboThreshold": 0,
"stickyTracking": false,
"events": {},
"point": {
"events": {}
}
}
},
"legend": {
"enabled": true,
"item": {},
"borderWidth": 0,
"layout": "horizontal",
"eQLegendPlacement": "CHART",
"backgroundColor": "rgba(255,255,255,0)",
"itemStyle": {
"color": "#000000",
"fontSize": "1rem",
"fontFamily": "Lucida Sans Unicode,Verdana,Helvetica,Arial",
"fontWeight":...