javascript - Highcharts Circular Percentage Chart -
i using highcharts, , wondering if possible highcharts make circular charts these:
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.
Comments
Post a Comment