10👍
You can set borderWidth
property to 0.
options: {
elements: {
arc: {
borderWidth: 0
}
}
}
Update
If you just want to remove only one border then you can do this using following code
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ["#BDC3C7","#9B59B6","#E74C3C","#26B99A"],
borderWidth: [0, 1, 1, 0]
}]
- Chartjs-How to properly unpack data from PHP array encoded as JSON from a JavaScript file
- Chartjs-Issue While Passing Dynamic Datas in React Chart Js 2
0👍
Just check how many segments you have.
const isMultipleSegment = seriesData.filter(val => val > 0).length > 1;
If more than one – remove border from chart config.
borderWidth: isMultipleSegment ? 2 : 0,
- Chartjs-How to change radius in rg-gauge-chart in Angular
- Chartjs-How to create Chart with 2 variables (x,,y)
Source:stackexchange.com