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

Function beforeDatasetsDraw

src/plugins/plugin.filler/index.js:68–81  ·  view source on GitHub ↗
(chart, _args, options)

Source from the content-addressed store, hash-verified

66 },
67
68 beforeDatasetsDraw(chart, _args, options) {
69 if (options.drawTime !== 'beforeDatasetsDraw') {
70 return;
71 }
72
73 const metasets = chart.getSortedVisibleDatasetMetas();
74 for (let i = metasets.length - 1; i >= 0; --i) {
75 const source = metasets[i].$filler;
76
77 if (_shouldApplyFill(source)) {
78 _drawfill(chart.ctx, source, chart.chartArea);
79 }
80 }
81 },
82
83 beforeDatasetDraw(chart, args, options) {
84 const source = args.meta.$filler;

Callers

nothing calls this directly

Calls 3

_shouldApplyFillFunction · 0.90
_drawfillFunction · 0.90

Tested by

no test coverage detected