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

Function calcOpts

src/components/colorbar/draw.js:106–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 function calcOpts() {
107 if(typeof cbOpt.calc === 'function') {
108 cbOpt.calc(gd, trace, opts);
109 } else {
110 opts._fillgradient = cont.reversescale ?
111 flipScale(cont.colorscale) :
112 cont.colorscale;
113 opts._zrange = [cont[cbOpt.min], cont[cbOpt.max]];
114 }
115 }
116
117 for(var i = 0; i < calcdata.length; i++) {
118 var cd = calcdata[i];

Callers 1

makeColorBarDataFunction · 0.85

Calls 1

flipScaleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…