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
53 lines
688 B
JavaScript
53 lines
688 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'bar',
|
|
data: {
|
|
labels: [0, 1, 2, 3, 4, 5],
|
|
datasets: [
|
|
{
|
|
// option in dataset
|
|
data: [0, 5, 10, null, -10, -5],
|
|
borderWidth: [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
// option in element (fallback)
|
|
data: [0, 5, 10, null, -10, -5],
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
elements: {
|
|
bar: {
|
|
backgroundColor: 'transparent',
|
|
borderColor: '#888',
|
|
borderWidth: [
|
|
5,
|
|
4,
|
|
3,
|
|
2,
|
|
1,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
scales: {
|
|
x: {display: false},
|
|
y: {display: false}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
canvas: {
|
|
height: 256,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|