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

Function getBarColor

src/traces/bar/style.js:181–186  ·  view source on GitHub ↗
(cd, trace)

Source from the content-addressed store, hash-verified

179}
180
181function getBarColor(cd, trace) {
182 if(trace.type === 'waterfall') {
183 return trace[cd.dir].marker.color;
184 }
185 return cd.mcc || cd.mc || trace.marker.color;
186}
187
188module.exports = {
189 style: style,

Callers 1

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