MCPcopy Create free account
hub / github.com/plotly/plotly.js / xScale

Function xScale

src/traces/parcoords/parcoords.js:220–220  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

218 var canvasPixelRatio = model.canvasPixelRatio;
219
220 var xScale = function(d) {return width * d / Math.max(1, model.colCount - 1);};
221
222 var unitPad = c.verticalPadding / height;
223 var _unitToPaddedPx = unitToPaddedPx(height, c.verticalPadding);

Callers 1

viewModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…