javascript - Highcharts full circle gauge as in Knob js -


is there simple example (preferibly jsfiddle) implementation of full circle gauge highcharts 1 below jquery knob ?

enter image description here

here ve got far : http://jsfiddle.net/skeletorkun/grn5o39e/1/

$(function () {      var gaugeoptions = {          chart: {             type: 'solidgauge'         },          title: null,          pane: {             center: ['50%', '50%'],             size: '100%',             startangle: 0,             endangle: 360,             background: {                 backgroundcolor: (highcharts.theme && highcharts.theme.background2) || '#eee',                 innerradius: '60%',                 outerradius: '100%',                 shape: 'arc'             }         },          tooltip: {             enabled: false         },          // value axis         yaxis: {             stops: [                 [0.1, '#55bf3b'], // green                 [0.5, '#dddf0d'], // yellow                 [0.9, '#df5353'] // red             ],             linewidth: 0,             minortickinterval: null,             tickpixelinterval: 400,             tickwidth: 0,             title: {                 y: -70             },             labels: {                 y: 16             }         },          plotoptions: {             solidgauge: {                 datalabels: {                     y: 5,                     borderwidth: 0,                     usehtml: true                 }             }         }     };       // rpm gauge     $('#container-rpm').highcharts(highcharts.merge(gaugeoptions, {         yaxis: {             min: 0,             max: 100,             title: {                 text: 'sth'             }         },          series: [{             name: 'rpm',             data: [92],             datalabels: {                 format: '<div style="text-align:center"><span style="font-size:25px;color:' +                     ((highcharts.theme && highcharts.theme.contrasttextcolor) || 'black') + '">{y}</span><br/>'              },             tooltip: {                 valuesuffix: ' revolutions/min'             }         }]      }));     }); 

you can realise solid-gauge , set correct angles in pane.

pane: {         center: ['50%', '50%'],         size: '100%',         startangle: 0,         endangle: 360,         background: {             backgroundcolor: (highcharts.theme && highcharts.theme.background2) || '#eee',             innerradius: '60%',             outerradius: '100%',             shape: 'arc'         }     }, 

example: http://jsfiddle.net/e76o9otk/1/


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -