mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
* Arc with rounded ends implementation * End style option * Working border radius implementation for arcs * Linting * Fix bug introduced when converting to new border object * Fix bugs identified by tests * Arc border radius tests * Add test to cover small borderRadii * Reduce the weight of the arc border implementation * lint fix
30 lines
483 B
JavaScript
30 lines
483 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'doughnut',
|
|
data: {
|
|
labels: [0, 1, 2, 3, 4, 5],
|
|
datasets: [
|
|
{
|
|
// option in dataset
|
|
data: [0, 2, 4, null, 6, 8],
|
|
borderRadius: () => 4,
|
|
},
|
|
]
|
|
},
|
|
options: {
|
|
elements: {
|
|
arc: {
|
|
backgroundColor: 'transparent',
|
|
borderColor: '#888',
|
|
}
|
|
},
|
|
}
|
|
},
|
|
options: {
|
|
canvas: {
|
|
height: 256,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|