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

Method constructor

src/elements/element.bar.js:164–177  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

162 };
163
164 constructor(cfg) {
165 super();
166
167 this.options = undefined;
168 this.horizontal = undefined;
169 this.base = undefined;
170 this.width = undefined;
171 this.height = undefined;
172 this.inflateAmount = undefined;
173
174 if (cfg) {
175 Object.assign(this, cfg);
176 }
177 }
178
179 draw(ctx) {
180 const {inflateAmount, options: {borderColor, backgroundColor}} = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected