Chart.js/test/fixtures/controller.radar/showLine/value.js
2021-02-10 08:21:39 -05:00

55 lines
1.0 KiB
JavaScript

module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
backgroundColor: '#ff0000',
fill: false,
showLine: true
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
},
{
data: [1, 1, 1, 1, 1, 1],
showLine: true,
backgroundColor: 'rgba(0,0,255,0.5)'
}
]
},
options: {
showLine: false,
elements: {
line: {
borderColor: '#ff0000',
backgroundColor: 'rgba(0,255,0,0.5)',
fill: true
}
},
scales: {
r: {
display: false,
min: -15
}
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};