Chart.js/test/fixtures/controller.doughnut/borderAlign/indexable.js

53 lines
786 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],
borderAlign: [
'center',
'inner',
'center',
'inner',
'center',
'inner',
],
borderColor: '#00ff00'
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
legend: false,
title: false,
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#ff0000',
borderWidth: 5,
borderAlign: [
'center',
'inner',
'center',
'inner',
'center',
'inner',
]
}
},
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};