Currently, I am in the process of developing a stacked bar chart using ng2-chart, an Angular-2 version of ChartJs.
In my attempt to create a bar chart with rounded corners as shown in the attached image, I have been facing difficulties finding the necessary option to achieve this effect.
If you could provide some guidance on how to accomplish this, it would be greatly appreciated.
Below is a snippet of my code:
public barChartOptions: any = {
scaleShowVerticalLines: false,
responsive: false,
scales: {
xAxes: [{
stacked: true
}],
maxBarThickness: 5,
yAxes: [{
stacked: true
}],
},
barThickness:20,
legend: {
display: true,
position: 'right',
labels: {
fontColor: '#fff'
}
}
};
<canvas baseChart style="height:350px; width:1150px;" [datasets]="barChartData" [labels]="barChartLabels" [options]="barChartOptions" [legend]="barChartLegend"
[colors]="lineChartColors" [chartType]="barChartType">
</canvas>