Chart.js/test/fixtures/plugin.legend/maxWidth/undefined.js
2021-03-18 07:12:43 -04:00

42 lines
748 B
JavaScript

module.exports = {
config: {
type: 'line',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [
{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
borderWidth: 1
},
{
label: '# of Points',
data: [7, 11, 5, 8, 3, 7],
borderWidth: 1
}
]
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
plugins: {
title: false,
tooltip: false,
filler: false,
legend: {
position: 'left',
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 150,
height: 75
}
}
};