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

Scatterpolargl fixes #3098

Merged
merged 8 commits into from
Oct 24, 2018
Merged

Scatterpolargl fixes #3098

merged 8 commits into from
Oct 24, 2018

Conversation

etpinard
Copy link
Contributor

fixes #3094 and brings scatterpolargl axis expansion on-par with scatterpolar.

cc @plotly/plotly_js

@etpinard etpinard added bug something broken status: reviewable labels Oct 11, 2018
... just use trace._length instead (which is far less confusing).
- and use same TOO_MANY_POINTS axis expansion logic as scattergl
- stash style opts and extend them with position opts
  during plot.
@etpinard
Copy link
Contributor Author

Ready for review again.

@@ -129,13 +126,10 @@ function calc(gd, trace) {

// stash scene ref
stash._scene = scene;
stash.index = scene.count;
stash.index = scene.count++;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this of course works... but I can't say I like using ++ mid-assignment

function calc(container, trace) {
var layout = container._fullLayout;
function calc(gd, trace) {
var fullLayout = gd._fullLayout;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha yeah, that's certainly clearer! 🍰

@alexcjohnson
Copy link
Collaborator

Beautiful! With the slight exception of #3098 (comment) but I won't hold up the 💃 for that.
Love the new trace type test.

@etpinard etpinard merged commit c10eb6f into master Oct 24, 2018
@etpinard etpinard deleted the scatterpolargl-2-scatterpolar branch October 24, 2018 20:09
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 this pull request may close these issues.

flipping between scatterpolar and scatterpolargl causes traces to disappear
2 participants