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

Function coerce

src/traces/scatter/defaults.js:20–22  ·  view source on GitHub ↗
(attr, dflt)

Source from the content-addressed store, hash-verified

18
19module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
20 function coerce(attr, dflt) {
21 return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);
22 }
23
24 var len = handleXYDefaults(traceIn, traceOut, layout, coerce);
25 if (!len) traceOut.visible = false;

Callers 10

defaults.jsFile · 0.70
period_defaults.jsFile · 0.70
xy_defaults.jsFile · 0.70
line_defaults.jsFile · 0.70
stack_defaults.jsFile · 0.70
text_defaults.jsFile · 0.70
marker_defaults.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…