Skip to content

Commit 2f3bd84

Browse files
committed
require histogram2d/calc in heatmap/calc,
- histogram2d and heatmap share the same calc function for now
1 parent 1a90968 commit 2f3bd84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/traces/heatmap/calc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ var isNumeric = require('fast-isnumeric');
1414
var Plotly = require('../../plotly');
1515
var Lib = require('../../lib');
1616

17+
var histogram2dCalc = require('../histogram2d/calc');
1718
var hasColumns = require('./has_columns');
1819
var convertColumnXYZ = require('./convert_column_xyz');
1920
var maxRowLength = require('./max_row_length');
@@ -45,7 +46,7 @@ module.exports = function calc(gd, trace) {
4546
Lib.markTime('done convert x&y');
4647

4748
if(isHist) {
48-
var binned = Plotly.Histogram.calc2d(gd, trace);
49+
var binned = histogram2dCalc(gd, trace);
4950
x = binned.x;
5051
x0 = binned.x0;
5152
dx = binned.dx;

0 commit comments

Comments
 (0)