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

Method drawBackground

src/core/core.scale.js:1443–1451  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

1441 * @protected
1442 */
1443 drawBackground() {
1444 const {ctx, options: {backgroundColor}, left, top, width, height} = this;
1445 if (backgroundColor) {
1446 ctx.save();
1447 ctx.fillStyle = backgroundColor;
1448 ctx.fillRect(left, top, width, height);
1449 ctx.restore();
1450 }
1451 }
1452
1453 getLineWidthForValue(value) {
1454 const grid = this.options.grid;

Callers 2

drawMethod · 0.95
_layersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected