mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
021561072b
Disabling all plugins when options.plugins = false
41 lines
535 B
JavaScript
41 lines
535 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'bar',
|
|
data: {
|
|
labels: [0, 1, 3, 4],
|
|
datasets: [
|
|
{
|
|
data: [5, 20, -5, -20],
|
|
borderColor: '#ff0000'
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
layout: {
|
|
padding: {
|
|
left: 0,
|
|
right: 0,
|
|
top: 50,
|
|
bottom: 50
|
|
}
|
|
},
|
|
elements: {
|
|
bar: {
|
|
backgroundColor: '#00ff00',
|
|
borderWidth: 8
|
|
}
|
|
},
|
|
scales: {
|
|
x: {display: false},
|
|
y: {display: false, min: -10, max: 10}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
canvas: {
|
|
height: 256,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|