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

Method drawBackground

src/core/core.scale.js:1441–1449  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

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

Callers 2

drawMethod · 0.95
_layersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected