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

Method fillText

src/plugins/plugin.legend.js:367–372  ·  view source on GitHub ↗
(x, y, legendItem)

Source from the content-addressed store, hash-verified

365 };
366
367 const fillText = function(x, y, legendItem) {
368 renderText(ctx, legendItem.text, x, y + (itemHeight / 2), labelFont, {
369 strikethrough: legendItem.hidden,
370 textAlign: rtlHelper.textAlign(legendItem.textAlign)
371 });
372 };
373
374 // Horizontal
375 const isHorizontal = this.isHorizontal();

Callers 4

renderTextFunction · 0.80
drawTitleMethod · 0.80
fillLineOfTextMethod · 0.80
drawFooterMethod · 0.80

Calls 2

renderTextFunction · 0.85
textAlignMethod · 0.80

Tested by

no test coverage detected