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
453 B
JavaScript
29 lines
453 B
JavaScript
module.exports = {
|
|
config: {
|
|
type: 'line',
|
|
data: {
|
|
datasets: [
|
|
{
|
|
data: [{x: NaN, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
|
|
borderColor: 'red',
|
|
fill: true,
|
|
spanGaps: true,
|
|
tension: 0
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {type: 'linear', display: false, min: 0, max: 20},
|
|
y: {display: false, min: -15, max: 15}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
canvas: {
|
|
height: 256,
|
|
width: 512
|
|
}
|
|
}
|
|
};
|