We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c2393a commit b5cd573Copy full SHA for b5cd573
src/plots/plots.js
@@ -16,6 +16,7 @@ var Plotly = require('../plotly');
16
var Registry = require('../registry');
17
var Lib = require('../lib');
18
var Color = require('../components/color');
19
+var BADNUM = require('../constants/numerical').BADNUM;
20
21
var plots = module.exports = {};
22
@@ -2013,7 +2014,7 @@ plots.doCalcdata = function(gd, traces) {
2013
2014
// This ensures there is a calcdata item for every trace,
2015
// even if cartesian logic doesn't handle it (for things like legends).
2016
if(!Array.isArray(cd) || !cd[0]) {
- cd = [{x: false, y: false}];
2017
+ cd = [{x: BADNUM, y: BADNUM}];
2018
}
2019
2020
// add the trace-wide properties to the first point,
0 commit comments