Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Scattermapbox BADNUM (w/o upgrading mapbox-gl)#1564
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
aec62481abbd903e64aa0785bade5c2393ab5cd573File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 = {}; | ||
| @@ -2012,11 +2013,8 @@ 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). | ||
| // | ||
| // Tag this artificial calc point with 'placeholder: true', | ||
| // to make it easier to skip over them in during the plot and hover step. | ||
| if(!Array.isArray(cd) || !cd[0]) { | ||
| cd = [{x: false, y: false, placeholder: true}]; | ||
| cd = [{x: BADNUM, y: BADNUM}]; | ||
Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉 | ||
| } | ||
| // add the trace-wide properties to the first point, | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rreusser looking good: