Skip to content

Commit b2c921e

Browse files
archmojCoding-with-Adam
authored andcommitted
reuse treemap plot in icicle
1 parent feb8785 commit b2c921e

File tree

6 files changed

+18
-655
lines changed

6 files changed

+18
-655
lines changed

src/traces/icicle/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var domainAttrs = require('../../plots/domain').attributes;
88
var pieAttrs = require('../pie/attributes');
99
var sunburstAttrs = require('../sunburst/attributes');
1010
var treemapAttrs = require('../treemap/attributes');
11-
var constants = require('./constants');
11+
var constants = require('../treemap/constants');
1212
var extendFlat = require('../../lib/extend').extendFlat;
1313

1414
module.exports = {

src/traces/icicle/constants.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/traces/icicle/draw_descendants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var svgTextUtils = require('../../lib/svg_text_utils');
77

88
var partition = require('./partition');
99
var styleOne = require('./style').styleOne;
10-
var constants = require('./constants');
10+
var constants = require('../treemap/constants');
1111
var helpers = require('../sunburst/helpers');
1212
var attachFxHandlers = require('../sunburst/fx');
1313
var formatSliceLabel = require('../sunburst/plot').formatSliceLabel;

src/traces/icicle/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
calc: require('./calc').calc,
1616
crossTraceCalc: require('./calc').crossTraceCalc,
1717

18-
plot: require('./plot'),
18+
plot: require('../treemap/plot'),
1919
style: require('./style').style,
2020

2121
colorbar: require('../scatter/marker_colorbar'),

0 commit comments

Comments
 (0)