Skip to content
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

Scatter3D errors on modebar interaction #3552

Closed
jermainezhimin opened this issue Feb 18, 2019 · 2 comments · Fixed by #3554
Closed

Scatter3D errors on modebar interaction #3552

jermainezhimin opened this issue Feb 18, 2019 · 2 comments · Fixed by #3554
Assignees
Labels
bug something broken

Comments

@jermainezhimin
Copy link

Info
There seems to be a feature regression in plotly.js version 1.44.0. Interacting with zoom or pan of the modebar in a plot (type='scatter3d with markers based on a colorscale), causes a console error and a visual error(markers turn black and colourscale turns white).

[Error] Error: Invalid value for <rect> attribute height="NaN"
	attrConstant (plotly-1.44.0.js:18832)
	(anonymous function) (plotly-1.44.0.js:19131)
	d3_selection_each (plotly-1.44.0.js:19137)
	each (plotly-1.44.0.js:19130)
	attr (plotly-1.44.0.js:18818)
	(anonymous function) (plotly-1.44.0.js:80052)
	(anonymous function) (plotly-1.44.0.js:19131)
	d3_selection_each (plotly-1.44.0.js:19137)
	each (plotly-1.44.0.js:19130)
	drawAxis (plotly-1.44.0.js:80036)
	syncOrAsync (plotly-1.44.0.js:99295)
	component (plotly-1.44.0.js:80263)
	connectColorbar (plotly-1.44.0.js:79564)
	marginPushers (plotly-1.44.0.js:104597)
	syncOrAsync (plotly-1.44.0.js:99295)
	plot (plotly-1.44.0.js:104678)
	syncOrAsync (plotly-1.44.0.js:99295)
	relayout (plotly-1.44.0.js:106212)
	wrappedEdit (plotly-1.44.0.js:106740)
	handleDrag3d (plotly-1.44.0.js:89353)
	(anonymous function) (plotly-1.44.0.js:90097)

Reproduction Steps

  1. Create a scattet3d chart with a color scale using the latest version of plotly.
  2. Click on the modebar.

Repro Codepen
https://codepen.io/jermainezhimin/pen/pGGbeP?editors=1000#0

Repro Gif
hqyazmfp3v

@etpinard
Copy link
Contributor

Thanks for the report!

@etpinard etpinard added the bug something broken label Feb 18, 2019
@etpinard
Copy link
Contributor

The culprit is #3384

Thanks again for the very clear report @jermainezhimin ! We'll have a patch out soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants