Chart.js/test/fixtures/controller.line/rotation/indexable.js
2021-02-10 08:21:39 -05:00

48 lines
891 B
JavaScript

module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#00ff00',
pointRotation: [
0, 30, 60, 90, 120, 150
]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
borderColor: '#ff0000',
borderWidth: 10,
pointStyle: 'line',
rotation: [
150, 120, 90, 60, 30, 0
],
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};