Chart.js/test/fixtures/controller.line/borderDash/value.js

48 lines
706 B
JavaScript
Raw Normal View History

module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
2019-03-21 09:06:39 +01:00
borderColor: '#ff0000',
borderDash: [5]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
legend: false,
title: false,
elements: {
line: {
2019-03-21 09:06:39 +01:00
borderColor: '#00ff00',
borderDash: [10],
fill: false,
},
point: {
2019-03-21 09:06:39 +01:00
radius: 10,
}
},
2019-03-21 09:06:39 +01:00
layout: {
padding: 32
},
scales: {
xAxes: [{display: false}],
yAxes: [{display: false}]
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};