MCPcopy Index your code
hub / github.com/plotly/plotly.js / getXY

Function getXY

src/traces/waterfall/plot.js:104–121  ·  view source on GitHub ↗
(di, xa, ya, isHorizontal)

Source from the content-addressed store, hash-verified

102}
103
104function getXY(di, xa, ya, isHorizontal) {
105 var s = [];
106 var p = [];
107
108 var sAxis = isHorizontal ? xa : ya;
109 var pAxis = isHorizontal ? ya : xa;
110
111 s[0] = sAxis.c2p(di.s0, true);
112 p[0] = pAxis.c2p(di.p0, true);
113
114 s[1] = sAxis.c2p(di.s1, true);
115 p[1] = pAxis.c2p(di.p1, true);
116
117 s[2] = sAxis.c2p(di.nextS0, true);
118 p[2] = pAxis.c2p(di.nextP0, true);
119
120 return isHorizontal ? [s, p] : [p, s];
121}

Callers 1

plotConnectorsFunction · 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…