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

Method configure

src/scales/scale.linearbase.js:293–308  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

291 * @protected
292 */
293 configure() {
294 const ticks = this.ticks;
295 let start = this.min;
296 let end = this.max;
297
298 super.configure();
299
300 if (this.options.offset && ticks.length) {
301 const offset = (end - start) / Math.max(ticks.length - 1, 1) / 2;
302 start -= offset;
303 end += offset;
304 }
305 this._startValue = start;
306 this._endValue = end;
307 this._valueRange = end - start;
308 }
309
310 getLabelForValue(value) {
311 return formatNumber(value, this.chart.options.locale, this.options.ticks.format);

Callers

nothing calls this directly

Calls 1

configureMethod · 0.65

Tested by

no test coverage detected