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

Function getXY

src/traces/bar/plot.js:50–64  ·  view source on GitHub ↗
(di, xa, ya, isHorizontal)

Source from the content-addressed store, hash-verified

48}
49
50function getXY(di, xa, ya, isHorizontal) {
51 var s = [];
52 var p = [];
53
54 var sAxis = isHorizontal ? xa : ya;
55 var pAxis = isHorizontal ? ya : xa;
56
57 s[0] = sAxis.c2p(di.s0, true);
58 p[0] = pAxis.c2p(di.p0, true);
59
60 s[1] = sAxis.c2p(di.s1, true);
61 p[1] = pAxis.c2p(di.p1, true);
62
63 return isHorizontal ? [s, p] : [p, s];
64}
65
66function transition(selection, fullLayout, opts, makeOnCompleteCallback) {
67 if (!fullLayout.uniformtext.mode && hasTransition(opts)) {

Callers 1

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