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

Function getMarkerColorInfo

src/traces/parcats/calc.js:91–101  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

89
90 // Build color generation function
91 function getMarkerColorInfo(index) {
92 var value, rawColor;
93 if(Lib.isArrayOrTypedArray(line.color)) {
94 value = line.color[index % line.color.length];
95 rawColor = value;
96 } else {
97 value = line.color;
98 }
99
100 return {color: markerColorscale(value), rawColor: rawColor};
101 }
102
103 // Number of values and counts
104 // ---------------------------

Callers 1

calc.jsFile · 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…