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

Method draw

src/controllers/controller.bar.js:668–680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

666 }
667
668 draw() {
669 const meta = this._cachedMeta;
670 const vScale = meta.vScale;
671 const rects = meta.data;
672 const ilen = rects.length;
673 let i = 0;
674
675 for (; i < ilen; ++i) {
676 if (this.getParsed(i)[vScale.axis] !== null && !rects[i].hidden) {
677 rects[i].draw(this._ctx);
678 }
679 }
680 }
681
682}

Callers

nothing calls this directly

Calls 2

getParsedMethod · 0.80
drawMethod · 0.65

Tested by

no test coverage detected