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

Method getLineWidthForValue

src/core/core.scale.js:1451–1463  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1449 }
1450
1451 getLineWidthForValue(value) {
1452 const grid = this.options.grid;
1453 if (!this._isVisible() || !grid.display) {
1454 return 0;
1455 }
1456 const ticks = this.ticks;
1457 const index = ticks.findIndex(t => t.value === value);
1458 if (index >= 0) {
1459 const opts = grid.setContext(this.getContext(index));
1460 return opts.lineWidth;
1461 }
1462 return 0;
1463 }
1464
1465 /**
1466 * @protected

Callers

nothing calls this directly

Calls 3

_isVisibleMethod · 0.95
getContextMethod · 0.95
setContextMethod · 0.80

Tested by

no test coverage detected