MCPcopy Create free account
hub / github.com/chartjs/Chart.js / acquireDatasetModeChart

Function acquireDatasetModeChart

test/specs/core.controller.spec.js:3272–3282  ·  view source on GitHub ↗
(options, plugins = [])

Source from the content-addressed store, hash-verified

3270 });
3271
3272 function acquireDatasetModeChart(options, plugins = []) {
3273 return acquireChart({
3274 type: 'line',
3275 data: {
3276 labels: ['a', 'b', 'c'],
3277 datasets: [{data: [1, 2, 3], borderWidth: 1, hoverBorderWidth: 5}, {data: [3, 2, 1]}]
3278 },
3279 options: Object.assign({interaction: {mode: 'dataset', intersect: false}}, options),
3280 plugins
3281 });
3282 }
3283
3284 function expectNothingOfDataset0Active(chart) {
3285 const meta = chart.getDatasetMeta(0);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected