});
```
+To disable all plugins for a specific chart instance, set `options.plugins` to `false`:
+
+```javascript
+var chart = new Chart(ctx, {
+ options: {
+ plugins: false // all plugins are disabled for this instance
+ }
+});
+```
+
## Plugin Core API
Read more about the [existing plugin extension hooks](../jsdoc/IPlugin.html).
import defaults from './core.defaults';
import registry from './core.registry';
-import {mergeIf} from '../helpers/helpers.core';
+import {mergeIf, valueOrDefault} from '../helpers/helpers.core';
/**
* @typedef { import("./core.controller").default } Chart
}
const config = chart && chart.config;
- const options = (config.options && config.options.plugins) || {};
+ const options = valueOrDefault(config.options && config.options.plugins, {});
const plugins = allPlugins(config);
- const descriptors = createDescriptors(plugins, options);
+ // options === false => all plugins are disabled
+ const descriptors = options === false ? [] : createDescriptors(plugins, options);
this._cache = descriptors;
it(input, function(done) {
loadConfig(input, function(json) {
var descr = json.description || (json.description = description);
- var chart = utils.acquireChart(json.config, json.options);
+
+ var config = json.config;
+ var options = config.options || (config.options = {});
+
+ // plugins are disabled by default, except if the path contains 'plugin' or there are instance plugins
+ if (input.indexOf('plugin') === -1 && config.plugins === undefined) {
+ options.plugins = options.plugins || false;
+ }
+
+ var chart = utils.acquireChart(config, json.options);
if (!inputs.png) {
fail(descr + '\r\nMissing PNG comparison file for ' + input);
done();
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: [
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: [
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: function(ctx) {
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: '#00ff00'
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
]
},
options: {
- legend: false,
skipNull: true,
- title: false,
scales: {
x: {display: false},
y: {display: false}
]
},
options: {
- legend: false,
skipNull: true,
- title: false,
scales: {
x: {display: false},
y: {display: false}
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"bar": {
"datasets": {
"barPercentage": 1,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"bar": {
"datasets": {
"barPercentage": 1,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"bar": {
"datasets": {
"barPercentage": 1,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"bar": {
"datasets": {
"barPercentage": 1,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"type": "time",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"bar": {
"datasets": {
"barPercentage": 1,
]
},
options: {
- legend: false,
- title: false,
indexAxis: 'y',
elements: {
bar: {
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: '#888',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
layout: {
padding: {
left: 0,
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
}]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
]
},
options: {
- legend: false,
- title: false,
indexAxis: 'y',
scales: {
x: {display: false, min: 0},
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false, stacked: true},
y: {display: false, min: 0}
}]
},
"options": {
- "title": false,
- "legend": false,
"indexAxis": "y",
"scales": {
"x": {
}]
},
"options": {
- "title": false,
- "legend": false,
"indexAxis": "y",
"scales": {
"x": {
}]
},
"options": {
- "title": false,
- "legend": false,
"scales": {
"x": {
"display": false,
}]
},
"options": {
- "title": false,
- "legend": false,
"scales": {
"x": {
"display": false,
]
},
options: {
- legend: false,
- title: false,
indexAxis: 'y',
elements: {
bar: {
]
},
options: {
- legend: false,
- title: false,
indexAxis: 'y',
scales: {
x: {
]
},
options: {
- legend: false,
- title: false,
indexAxis: 'y',
scales: {
x: {
]
},
options: {
- legend: false,
- title: false,
indexAxis: 'y',
scales: {
x: {
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
- legend: false,
- title: false,
bar: {
datasets: {
barPercentage: 1,
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
- legend: false,
- title: false,
bar: {
datasets: {
barPercentage: 1,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false,
}]
},
options: {
- legend: false,
scales: {
x: {ticks: {display: false}},
y: {
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {"display": false},
"y": {
}]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
}]
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: [
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: function(ctx) {
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: '#00ff00'
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
}]
},
"options": {
- "responsive": false,
- "legend": false,
- "title": false
+ "responsive": false
}
}
}
}]
},
"options": {
- "responsive": false,
- "legend": false,
- "title": false
+ "responsive": false
}
}
}
},
"options": {
"circumference": 400,
- "responsive": false,
- "legend": false,
- "title": false
+ "responsive": false
}
}
}
},
options: {
circumference: 57.32,
- responsive: false,
- legend: false,
- title: false
+ responsive: false
}
}
};
},
"options": {
"circumference": 57.32,
- "responsive": false,
- "legend": false,
- "title": false
+ "responsive": false
}
}
}
},
options: {
responsive: false,
- legend: false,
- title: false
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: false
+ }
},
plugins: [{
id: 'hide',
},
options: {
circumference: 180,
- responsive: false,
- legend: false,
- title: false
+ responsive: false
}
}
};
"borderWidth": 0
}],
"labels": [ "label0", "label1" ]
- },
- "options": {
- "legend": false,
- "title": false
}
},
"options": {
"width": 500
}
}
-}
\ No newline at end of file
+}
}]
},
"options": {
- "responsive": false,
- "legend": false,
- "title": false
+ "responsive": false
}
}
}
},
"options": {
"responsive": false,
- "legend": false,
- "title": false
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
+ }
}
}
}
},
"options": {
"circumference": 57.32,
- "responsive": false,
- "legend": false,
- "title": false
+ "responsive": false
}
}
}
}
],
"labels": [ "label0", "label1" ]
- },
- "options": {
- "legend": false,
- "title": false
}
},
"options": {
"width": 500
}
}
-}
\ No newline at end of file
+}
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: function(ctx) {
display: false,
beginAtZero: true
}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: '#00ff00'
scales: {
x: {display: false},
y: {display: false}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderCapStyle: function(ctx) {
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderCapStyle: 'butt',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: function(ctx) {
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#0000ff',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#ff0000',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"max": 3,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"min": -2,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"min": -2,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {"ticks": {"display": false}},
"y": {
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {"ticks": {"display": false}},
"y": {
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {"ticks": {"display": false}},
"y": {
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"min": -2,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: true
scales: {
x: {display: false},
y: {display: false}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: true
scales: {
x: {display: false},
y: {display: false}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: '#00ff00',
scales: {
x: {display: false},
y: {display: false}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: '#00ff00',
scales: {
x: {display: false},
y: {display: false}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {"display": false},
"y": {
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {"display": false},
"y": {
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scales": {
"x": {"display": false},
"y": {
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
- legend: false,
- title: false,
showLine: true,
scales: {
x: {
y: {
display: false
}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
- legend: false,
- title: false,
showLine: false,
scales: {
x: {
y: {
display: false
}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
}
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: true
scales: {
x: {stacked: true, display: false},
y: {stacked: true, display: false}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: true
scales: {
x: {stacked: true, display: false},
y: {stacked: true, display: false}
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
}],
},
options: {
- legend: {
- display: false,
- },
scales: {
x: {
display: false,
position: 'left',
},
},
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
+ }
},
},
options: {
}
},
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
}
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"display": true,
"angleLines": {
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
}
]
},
options: {
- legend: false,
- title: false,
scale: {
display: false
}
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: [
]
},
options: {
- legend: false,
- title: false,
scale: {
display: false
}
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: function(ctx) {
]
},
options: {
- legend: false,
- title: false,
scale: {
display: false
}
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: '#00ff00'
}
},
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
}
}
},
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
}
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
arc: {
backgroundColor: 'transparent',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: function(ctx) {
},
scale: {
display: false,
- min: -15
+ min: -15,
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: '#00ff00',
scale: {
display: false,
min: -15
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderCapStyle: function(ctx) {
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderCapStyle: 'butt',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: function(ctx) {
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#0000ff',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#ff0000',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
borderColor: '#00ff00',
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: '#00ff00',
scale: {
display: false,
min: -15
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
backgroundColor: '#00ff00',
scale: {
display: false,
min: -15
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"display": false,
"min": 0,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
elements: {
line: {
fill: false,
]
},
options: {
- legend: false,
- title: false,
showLine: false,
elements: {
line: {
scale: {
display: false,
min: -15
+ },
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false,
+ filler: true
}
}
},
}],
},
options: {
- legend: false,
- title: false,
scales: {
x: {
display: false
}],
},
options: {
- legend: false,
- title: false,
scales: {
x: {
display: false
}]
},
"options": {
- "legend": false,
- "title": false,
"scales": {
"x": {
"axis": "x",
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
ticks: {
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
ticks: {
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
ticks: {
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
scales: {
y: {
position: 'left',
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
scales: {
y: {
position: 'left',
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
scales: {
y: {
position: 'left',
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
scales: {
y: {
position: 'right',
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
scales: {
y: {
position: 'right',
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
scales: {
y: {
position: 'right',
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
position: 'top',
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
position: 'top',
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
position: 'top',
labels: ['Label1', 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
ticks: {
labels: ['Label1', 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
ticks: {
labels: ['Label1', 'Label2', 'Label3']
},
options: {
- legend: false,
- title: false,
scales: {
x: {
ticks: {
}]
},
"options": {
- "legend": false,
- "title": false,
"indexAxis": "y",
"scales": {
"x": {
"datasets": []
},
"options": {
- "legend": false,
- "title": false,
"indexAxis": "y",
"scales": {
"x": {
}]
},
"options": {
- "legend": false,
- "title": false,
"scales": {
"x": {
"position": "center",
}]
},
"options": {
- "legend": false,
- "title": false,
"scales": {
"x": {
"position": {
}]
},
"options": {
- "legend": false,
- "title": false,
"scales": {
"x": {
"position": "bottom",
}]
},
"options": {
- "legend": false,
- "title": false,
"scales": {
"x": {
"position": "bottom",
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
]
},
options: {
- legend: false,
- title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "circle"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "crossRot"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "cross"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "dash"
},
options: {
responsive: false,
- legend: false,
- title: false,
elements: {
point: {
pointStyle: imageCanvas,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "line"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "rectRot"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "rectRounded"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "rect"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "star"
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"elements": {
"point": {
"pointStyle": "triangle"
},
options: {
responsive: false,
- legend: false,
- title: false,
elements: {
point: {
rotation: angles,
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
scales: {
horz: {
position: 'top'
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"fill": "end",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"fill": "end",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
},
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"fill": "origin",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"below": "transparent"
}
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"stepped": true,
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"stepped": true,
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"fill": "origin",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"fill": "start",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"fill": "start",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderWidth": 5,
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
options: {
animation: false,
responsive: false,
- legend: false,
- title: false,
line: {
datasets: {
tension: 0.4,
pointRadius: 1.5,
}
},
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false
+ },
scales: {
x: {
type: 'linear',
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"cubicInterpolationMode": "monotone",
"borderColor": "transparent"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"cubicInterpolationMode": "monotone",
"borderColor": "transparent"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"cubicInterpolationMode": "monotone",
"borderColor": "transparent"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"cubicInterpolationMode": "monotone",
"borderColor": "transparent"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"line": {
"borderColor": "black"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scales": {
"x": {
"display": false
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false,
"gridLines": {
"borderColor": "transparent",
"fill": "end"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderColor": "transparent",
"fill": "end"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderColor": "transparent",
"fill": "end"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false,
"gridLines": {
"borderColor": "transparent",
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderColor": "transparent",
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"tension": 0.5,
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"tension": 0.5,
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderColor": "transparent",
"fill": "origin"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false,
"gridLines": {
"borderColor": "transparent",
"fill": "start"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderColor": "transparent",
"fill": "start"
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderWidth": 5,
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
]
},
options: {
- legend: false,
- title: false,
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false
+ },
scale: {
display: false
}
"options": {
"responsive": false,
"spanGaps": true,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false
},
"borderColor": "transparent",
"tension": 0
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
"options": {
"responsive": false,
"spanGaps": false,
- "legend": false,
- "title": false,
"scale": {
"display": false,
"gridLines": {
"borderColor": "transparent",
"fill": { "value": 3 }
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false
}
}
},
labels: ['', '', '', '', '', '', '', '', '', '', '']
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
fill: false
}
},
+ plugins: {
+ legend: false,
+ title: false,
+ filler: false
+ },
tooltips: {
mode: 'nearest',
intersect: false,
labels: pointStyles.map(() => '')
},
options: {
- legend: false,
- title: false,
scales: {
x: {display: false},
y: {display: false}
fill: false
}
},
+ plugins: {
+ legend: false,
+ title: false,
+ filler: false
+ },
tooltips: {
mode: 'nearest',
intersect: false,
},
options: {
indexAxis: 'y',
- legend: false,
- title: false,
elements: {
bar: {
backgroundColor: '#AAAAAA80',
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"gridLines": {
"color": "rgb(0, 0, 0)",
},
options: {
responsive: false,
- legend: false,
- title: false,
scale: {
gridLines: {
display: true,
},
options: {
responsive: false,
- legend: false,
- title: false,
scale: {
gridLines: {
display: true,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"gridLines": {
"color": "rgba(0, 0, 255, 0.5)",
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"gridLines": {
"circular": true,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"gridLines": {
"display": false
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"gridLines": {
"color": "rgba(0, 0, 0, 1)",
"ticks": {
"display": false
}
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false,
+ "filler": true
}
}
}
},
options: {
responsive: false,
- legend: false,
- title: false,
scale: {
gridLines: {
display: true,
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"gridLines": {
"color": "rgba(0, 0, 0, 1)",
"ticks": {
"display": false
}
- }
+ },
+ "plugins": {
+ "legend": false,
+ "title": false,
+ "tooltip": false,
+ "filler": true
+ }
}
}
}
},
"options": {
"responsive": false,
- "legend": false,
- "title": false,
"scale": {
"gridLines": {
"display": true,
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
}]
},
options: {
- legend: false,
scales: {
x: {
display: false,
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
labels: ['2005', '2006', '2007'],
time: timeOpts
}
- },
- legend: false
+ }
}
},
options: {
}
}
},
- legend: false
+ plugins: {
+ legend: false,
+ title: false,
+ tooltip: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
y: {
display: false
}
- },
- legend: false
+ }
}
},
options: {
expect(plugin.hook).toHaveBeenCalled();
expect(plugin.hook.calls.first().args[1]).toEqual({bar: 'bar'});
});
+
+ it('should disable all plugins', function() {
+ var plugin = {id: 'a', hook: function() {}};
+ var chart = window.acquireChart({
+ plugins: [plugin],
+ options: {
+ plugins: false
+ }
+ });
+
+ spyOn(plugin, 'hook');
+
+ chart._plugins.notify(chart, 'hook');
+
+ expect(plugin.hook).not.toHaveBeenCalled();
+ });
});
});