javascript - Highcharts Circular Percentage Chart -


i using highcharts, , wondering if possible highcharts make circular charts these:

circular charts

i have this, fills whole circle instead of 60% of circle (here fiddle: http://jsfiddle.net/fccuw47y/1/).

$(function() {     // create chart     chart = new highcharts.chart({         chart: {             renderto: 'container',             type: 'pie'         },         title: {             text: ''         },         plotoptions: {             pie: {                 shadow: false             }         },         series: [{             name: 'browsers',             data: [["total",60]],             size: '100%',             innersize: '95%',             showinlegend:false,             datalabels: {                 enabled: false             }         }]     }); }); 

we implemented similar looking chart using solidgauge type in highcharts.

you use piechart, pie chart going fill 100%. it's nature of beast. if wanted use piechart, have supply amount remainder (empty space). example, series.data have be

[["total", 60], ["empty", 40]] 

here example using solidgauge type of chart. it's more flexible, , seems more natural pick in case.

http://jsfiddle.net/morqp9at/


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -