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

Function fillAxisStashes

src/traces/splom/defaults.js:102–121  ·  view source on GitHub ↗
(axId, counterAxId, dim, list)

Source from the content-addressed store, hash-verified

100 var yList = [];
101
102 function fillAxisStashes(axId, counterAxId, dim, list) {
103 if (!axId) return;
104
105 var axLetter = axId.charAt(0);
106 var stash = layout._splomAxes[axLetter];
107
108 traceOut['_' + axLetter + 'axes'][axId] = 1;
109 list.push(axId);
110
111 if (!(axId in stash)) {
112 var s = (stash[axId] = {});
113 if (dim) {
114 s.label = dim.label || '';
115 if (dim.visible && dim.axis) {
116 if (dim.axis.type) s.type = dim.axis.type;
117 if (dim.axis.matches) s.matches = counterAxId;
118 }
119 }
120 }
121 }
122
123 // cases where showDiag and showLower or showUpper are false
124 // no special treatment as the 'drawn' x-axes and y-axes no longer match

Callers 1

handleAxisDefaultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…