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

Function decodedFillValues

test/specs/plugin.filler.spec.js:3–9  ·  view source on GitHub ↗
(chart)

Source from the content-addressed store, hash-verified

1describe('Plugin.filler', function() {
2 const fillerPluginRegisterWarning = 'Tried to use the \'fill\' option without the \'Filler\' plugin enabled. Please import and register the \'Filler\' plugin and make sure it is not disabled in the options';
3 function decodedFillValues(chart) {
4 return chart.data.datasets.map(function(dataset, index) {
5 var meta = chart.getDatasetMeta(index) || {};
6 expect(meta.$filler).toBeDefined();
7 return meta.$filler.fill;
8 });
9 }
10
11 describe('dataset.fill', function() {
12 it('Should show a warning when trying to use the filler plugin in the dataset when it\'s not registered', function() {

Callers 1

Calls 1

getDatasetMetaMethod · 0.80

Tested by

no test coverage detected