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

Function style

src/traces/icicle/style.js:9–24  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

7var fillOne = require('../sunburst/fill_one');
8
9function style(gd) {
10 var s = gd._fullLayout._iciclelayer.selectAll('.trace');
11 resizeText(gd, s, 'icicle');
12
13 s.each(function(cd) {
14 var gTrace = d3.select(this);
15 var cd0 = cd[0];
16 var trace = cd0.trace;
17
18 gTrace.style('opacity', trace.opacity);
19
20 gTrace.selectAll('path.surface').each(function(pt) {
21 d3.select(this).call(styleOne, pt, trace, gd);
22 });
23 });
24}
25
26function styleOne(s, pt, trace, gd) {
27 var cdi = pt.data.data;

Callers

nothing calls this directly

Calls 1

resizeTextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…