8000 Scattergeo BADNUM by etpinard · Pull Request #1538 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Scattergeo BADNUM #1538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 7, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace false values with BADNUM in empty calcdata traces
  • Loading branch information
etpinard committed Apr 7, 2017
commit b5cd57308c60b584ba47ba93b35bb02efdd15418
3 changes: 2 additions & 1 deletion src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var Plotly = require('../plotly');
var Registry = require('../registry');
var Lib = require('../lib');
var Color = require('../components/color');
var BADNUM = require('../constants/numerical').BADNUM;

var plots = module.exports = {};

Expand Down Expand Up @@ -2013,7 +2014,7 @@ plots.doCalcdata = function(gd, traces) {
// This ensures there is a calcdata item for every trace,
// even if cartesian logic doesn't handle it (for things like legends).
if(!Array.isArray(cd) || !cd[0]) {
cd = [{x: false, y: false}];
cd = [{x: BADNUM, y: BADNUM}];
}

// add the trace-wide properties to the first point,
Expand Down
0