Chart.js/test/fixtures/controller.bar/bar-base-value.js
Evert Timberg 30d09f4701
Bar chart base value overrides (#7904)
* Bar chart base value overrides
* Ensure that `base` is marked as indexable and scriptable in the docs
2020-10-17 16:15:40 -04:00

32 lines
430 B
JavaScript

module.exports = {
config: {
type: 'bar',
data: {
labels: [0, 1, 3, 4],
datasets: [
{
data: [5, 20, 10, 11],
base: 10,
backgroundColor: '#00ff00',
borderColor: '#ff0000',
borderWidth: 2,
}
]
},
options: {
legend: false,
title: false,
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};