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

Function weightFallBack

src/traces/scattergl/convert.js:245–250  ·  view source on GitHub ↗
(w)

Source from the content-addressed store, hash-verified

243// scattergl rendering pipeline has limited support of numeric weight values
244// Here we map the numbers to be either bold or normal.
245function weightFallBack(w) {
246 if (w <= 1000) {
247 return w > 500 ? 'bold' : 'normal';
248 }
249 return w;
250}
251
252function convertMarkerStyle(gd, trace) {
253 var count = trace._length;

Callers 1

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