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
29 lines
378 B
JavaScript
29 lines
378 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'bar',
|
|
data: {
|
|
datasets: [{
|
|
data: [1, 2, 3],
|
|
}],
|
|
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {
|
|
position: 'top',
|
|
ticks: {
|
|
crossAlign: 'center',
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true,
|
|
canvas: {
|
|
height: 256,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|