2019-02-25 09:03:12 +01:00
|
|
|
module.exports = {
|
|
|
|
threshold: 0.01,
|
|
|
|
config: {
|
2020-06-18 23:35:52 +02:00
|
|
|
type: 'bar',
|
2019-02-25 09:03:12 +01:00
|
|
|
data: {
|
|
|
|
labels: [0, 1, 2, 3, 4, 5],
|
|
|
|
datasets: [
|
|
|
|
{
|
|
|
|
// option in dataset
|
|
|
|
data: [0, 5, 10, null, -10, -5],
|
|
|
|
borderWidth: 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// option in element (fallback)
|
|
|
|
data: [0, 5, 10, null, -10, -5],
|
2020-06-18 23:35:52 +02:00
|
|
|
borderSkipped: false
|
2019-02-25 09:03:12 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
legend: false,
|
|
|
|
title: false,
|
2020-06-18 23:35:52 +02:00
|
|
|
indexAxis: 'y',
|
2019-02-25 09:03:12 +01:00
|
|
|
elements: {
|
2020-10-20 14:18:56 +02:00
|
|
|
bar: {
|
2019-02-25 09:03:12 +01:00
|
|
|
backgroundColor: '#AAAAAA80',
|
|
|
|
borderColor: '#80808080',
|
|
|
|
borderWidth: {bottom: 6, left: 15, top: 6, right: 15}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
scales: {
|
2019-11-22 00:46:49 +01:00
|
|
|
x: {display: false},
|
|
|
|
y: {display: false}
|
2019-02-25 09:03:12 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
canvas: {
|
|
|
|
height: 256,
|
|
|
|
width: 512
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|