Skip to content

Commit 481f660

Browse files
committed
add basic mock for treemap and sunburst - rename a variable name
1 parent fed26bb commit 481f660

File tree

4 files changed

+419
-2
lines changed

4 files changed

+419
-2
lines changed

src/traces/treemap/plot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function plotOne(gd, cd, element, transitionOpts) {
156156
trace._maxDepth = maxDepth;
157157
trace._backgroundColor = fullLayout.paper_bgcolor;
158158
trace._entryDepth = entry.data.depth;
159-
trace._atMultipleRoot = isRoot;
159+
trace._atRootLevel = isRoot;
160160

161161
var cenX = -vpw / 2 + gs.l + gs.w * (domain.x[1] + domain.x[0]) / 2;
162162
var cenY = -vph / 2 + gs.t + gs.h * (1 - (domain.y[1] + domain.y[0]) / 2);

src/traces/treemap/style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function styleOne(s, pt, trace, opts) {
6868
}
6969
} else { // i.e. case of depthfade === 'reversed'
7070
n = pt.data.depth - trace._entryDepth;
71-
if(!trace._atMultipleRoot) n++;
71+
if(!trace._atRootLevel) n++;
7272
}
7373

7474
if(n > 0) {
86.7 KB
Loading

0 commit comments

Comments
 (0)