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
30 lines
493 B
JavaScript
30 lines
493 B
JavaScript
module.exports = {
|
|
threshold: 0.01,
|
|
config: {
|
|
type: 'bar',
|
|
data: {
|
|
datasets: [{
|
|
data: [10, 5, 0, 25, 78]
|
|
}],
|
|
labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5']
|
|
},
|
|
options: {
|
|
indexAxis: 'y',
|
|
elements: {
|
|
bar: {
|
|
backgroundColor: '#AAAAAA80',
|
|
borderColor: '#80808080',
|
|
borderWidth: {bottom: 6, left: 15, top: 6, right: 15}
|
|
}
|
|
},
|
|
scales: {
|
|
x: {display: false},
|
|
y: {display: true}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true
|
|
}
|
|
};
|