Chart.js/test/fixtures/controller.radar/borderCapStyle/value.js
Akihiko Kusanagi bd3ab17ef7 Add tests and a sample for radar scriptable line options (#6263)
* Add tests and a sample for radar scriptable line options

* Improve image tests
2019-05-21 18:06:12 -04:00

55 lines
770 B
JavaScript

module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2],
datasets: [
{
// option in dataset
data: [null, 3, 3],
borderCapStyle: 'round'
},
{
// option in dataset
data: [null, 2, 2],
borderCapStyle: 'square'
},
{
// option in element (fallback)
data: [null, 1, 1]
}
]
},
options: {
legend: false,
title: false,
elements: {
line: {
borderCapStyle: 'butt',
borderColor: '#00ff00',
borderWidth: 32,
fill: false
},
point: {
radius: 10
}
},
layout: {
padding: 32
},
scale: {
display: false,
ticks: {
beginAtZero: true
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};