Skip to content

Commit bb542ab

Browse files
committed
require histogram/defaults in heatmap/defaults
- histogram2d and heatmap share the same supplyDefaults step
1 parent 2f3bd84 commit bb542ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/heatmap/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
var isNumeric = require('fast-isnumeric');
1313

14-
var Plotly = require('../../plotly');
1514
var Plots = require('../../plots/plots');
1615
var Lib = require('../../lib');
1716
var Colorscale = require('../../components/colorscale');
1817

18+
var histogramSupplyDefaults = require('../histogram/defaults');
1919
var attributes = require('./attributes');
2020
var hasColumns = require('./has_columns');
2121

@@ -33,7 +33,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
3333
// x, y, z, marker.color, and x0, dx, y0, dy are coerced
3434
// in Histogram.supplyDefaults
3535
// (along with histogram-specific attributes)
36-
Plotly.Histogram.supplyDefaults(traceIn, traceOut);
36+
histogramSupplyDefaults(traceIn, traceOut);
3737
if(traceOut.visible === false) return;
3838
}
3939
else {

0 commit comments

Comments
 (0)