I am using react-chartjs-2 and I want the labels to be circular. also I want the chart itself with labels have a display of inline-block so that I get something like this photo:
[
but what I actually get is this :

and my code is here :
let _data = data;
let _backgroundColor = [];
let _borderColor = [];
setDataShareholder(res);
res.value.forEach(item => {
let rgb = `${random(0, 255)}, ${random(0, 255)}, ${random(0, 255)}`;
_backgroundColor.push(`rgba(${rgb}, 0.5)`)
_borderColor.push(`rgba(${rgb}, 1)`)
});
_data.labels = res.value.map(item => item.name)
_data.datasets = [{
data: res.value.map(item => Number(item.violationsCount)),
backgroundColor: _backgroundColor,
borderColor: _borderColor,
borderWidth: 1
}];
setData(_data);
usage :
import { Doughnut } from 'react-chartjs-2';
<Doughnut data={data} />
please help me if you can. thanks