Chart.js/test/fixtures/core.scale/border-behind-elements.js
Jacco van den Berg 3eb947719e
Put the border opts in own object (#10571)
* put borderOpts in own object

* document z option

* remove todo and change scaleId to id

* update some tests

* clean bit, remove console log

* fix failing test

* lint

* Remove comment
2022-08-18 15:07:46 +02:00

50 lines
793 B
JavaScript

module.exports = {
config: {
type: 'bubble',
data: {
datasets: [
{
label: '# of Votes',
data: [{x: 19, y: 3, r: 3}, {x: 2, y: 2, r: 60}],
radius: 100,
backgroundColor: 'pink'
}
]
},
options: {
plugins: {
legend: {
display: false
}
},
scales: {
y: {
ticks: {
display: false
},
border: {
color: 'red',
width: 5
}
},
x: {
ticks: {
display: false
},
border: {
color: 'red',
width: 5
}
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};