mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
30d09f4701
* Bar chart base value overrides * Ensure that `base` is marked as indexable and scriptable in the docs
32 lines
430 B
JavaScript
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
|
|
}
|
|
}
|
|
};
|