javascript - Donut Inner Text -
I have developed a donut chart using the Highchurch library. I need to include a label in the interior of the donut.
Expected Result:
JS:
$ (function () {$ ('# container8') ['# 081969', '# 0e2569', '# 1e3b81 ',' # 08489, '' # 081969 ',' # 0e2569 ',' # 1e3b81 ',' # 284 9 2 ',' # 30509b '], title: {text:'}}, tooltip: { Enabled: false}, plot option: {Pi: {Inhers: 140, Depth: 45}}, series: [{Name: 'distributed amount', data: [['56% ', 56], ['44%'] , 44]]}]}})}};
Fiddles can be found here:
Title: {style: {fontSize: '48px', fontWeight: 'bold'}, vertical alliance: 'medium'},
and finally
}, Function (chart) {chart.setTitle ({text: chart.series [0]. Data [0] .y + '%'}); });
Demo :
Related Questions:
Comments
Post a Comment