Hi Joshua,
Thanks for contacting Syncfusion Support.
We have analyzed your query and created a sample based on your requirement. And we would like to inform that pie and doughnut chart rendering based on its calculation of proportional ratio by specified height and width to the chart. So if you wish to remove the space on around the chart, then please refer the code example below.
[JS]
$("#container").ejChart(
{
elementSpacing: 0, // you can remove the space by based on specified value
margin: { left: 0, right: 0, top: 0, bottom: 0 },
doughnutSize: 1,
size: { height: "500", width: "500" } //You should set the same size for height and width
}); |
In the above code, we have removed the space on around the chart by using above API’s and also you should specify the doughnut size as 1.
And you can find the sample from the below location.
Now, doughnut chart has been rendered without spacing.
Please fin the outputs of the sample below
Please let us know if you have concern.
Regards,
Saravana Kumar K