MCPcopy
hub / github.com/chartjs/Chart.js / beforeDatasetDraw

Function beforeDatasetDraw

src/plugins/plugin.filler/index.js:83–91  ·  view source on GitHub ↗
(chart, args, options)

Source from the content-addressed store, hash-verified

81 },
82
83 beforeDatasetDraw(chart, args, options) {
84 const source = args.meta.$filler;
85
86 if (!_shouldApplyFill(source) || options.drawTime !== 'beforeDatasetDraw') {
87 return;
88 }
89
90 _drawfill(chart.ctx, source, chart.chartArea);
91 },
92
93 defaults: {
94 propagate: true,

Callers

nothing calls this directly

Calls 2

_shouldApplyFillFunction · 0.90
_drawfillFunction · 0.90

Tested by

no test coverage detected