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

Function styleOnSelect

src/traces/bar/style.js:61–70  ·  view source on GitHub ↗
(gd, cd, sel)

Source from the content-addressed store, hash-verified

59}
60
61function styleOnSelect(gd, cd, sel) {
62 var trace = cd[0].trace;
63
64 if(trace.selectedpoints) {
65 stylePointsInSelectionMode(sel, trace, gd);
66 } else {
67 stylePoints(sel, trace, gd);
68 Registry.getComponentMethod('errorbars', 'style')(sel);
69 }
70}
71
72function stylePointsInSelectionMode(s, trace, gd) {
73 Drawing.selectedPointStyle(s.selectAll('path'), trace);

Callers

nothing calls this directly

Calls 2

stylePointsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…