I am trying to border-radius and gradient color to the chart to my donut chart, images of both the expected chart and what I have managed to create are attached. and code also attached.
Expected chart:-
Expected chart
Chart i am working:-
$(function() {
var data = <%= raw @array_color.to_json %>;
var total_project_count = <%= @total_project_count %>
var total_project_text = `Totatl Projects<br/>${total_project_count}`
var total_project_text = `<span class="project_count_text">TOTAL PROJECTS</span><br/><span class="project_count_dummy">""</span><br/><span class="project_count_count">${total_project_count}</span>`
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie',
},
credits: false,
plotOptions: {
pie: {
borderWidth: 6,
innerSize: '80%',
// borderColor: null,
slicedOffset: 5,
stacking: 'normal',
dataLabels: {
connectorWidth: 2
},
allowPointSelect: true,
cursor: 'pointer',
point: {
events: {
click: function(event) {
var options = this.options;
update_rag(options.status);
}
}
}
},
},
title: {
verticalAlign: 'middle',
floating: true,
text: total_project_text,
},
series: [{
data: data,
}, ],
});