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

Method skipNull

src/controllers/controller.bar.js:443–450  ·  view source on GitHub ↗
(meta)

Source from the content-addressed store, hash-verified

441 const iScaleValue = currentParsed && currentParsed[iScale.axis];
442
443 const skipNull = (meta) => {
444 const parsed = meta._parsed.find(item => item[iScale.axis] === iScaleValue);
445 const val = parsed && parsed[meta.vScale.axis];
446
447 if (isNullOrUndef(val) || isNaN(val)) {
448 return true;
449 }
450 };
451
452 for (const meta of metasets) {
453 if (dataIndex !== undefined && skipNull(meta)) {

Callers

nothing calls this directly

Calls 1

isNullOrUndefFunction · 0.85

Tested by

no test coverage detected