Skip to content

Commit 5809137

Browse files
committed
Fix scattercarpet calc
1 parent 082bfc1 commit 5809137

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/traces/scattercarpet/calc.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
var isNumeric = require('fast-isnumeric');
1313

1414
var Axes = require('../../plots/cartesian/axes');
15-
var Lib = require('../../lib');
1615

1716
var subTypes = require('../scatter/subtypes');
1817
var calcColorscale = require('../scatter/colorscale_calc');
18+
var arraysToCalcdata = require('../scatter/arrays_to_calcdata');
1919
var lookupCarpet = require('../carpet/lookup_carpetid');
2020

2121
module.exports = function calc(gd, trace) {
@@ -68,8 +68,7 @@ module.exports = function calc(gd, trace) {
6868

6969
calcColorscale(trace);
7070

71-
// this has migrated up from arraysToCalcdata as we have a reference to 's' here
72-
if(typeof s !== 'undefined') Lib.mergeArray(s, cd, 'ms');
71+
arraysToCalcdata(cd, trace);
7372

7473
return cd;
7574
};

0 commit comments

Comments
 (0)