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

Add missing fields to fullData #2850

Merged
merged 8 commits into from
Sep 12, 2018
Merged

Add missing fields to fullData #2850

merged 8 commits into from
Sep 12, 2018

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Jul 26, 2018

covers a few items in #2834


Does not yet address pie marker.colors and violin span and bandwidth (see #2834 (comment) for more on that topic).

cc @alexcjohnson

etpinard added 2 commits July 26, 2018 15:10
... instead of clearing them entirely, this is more
    consistent with what the react-chart-editor expects
- this piece here is called by Colorbar.supplyDefaults, but
  colorbars do not have a container-wide 'color' attribute unlike
  axes, so the comparison with layoutAttributes.color was off.
- this bug did not affect the baselines as this routine is called
  again during Colorbar.draw with a set container color.
@etpinard etpinard added bug something broken status: in progress labels Jul 26, 2018
@@ -304,7 +304,7 @@ function plotBoxMean(sel, axes, trace, t) {

var paths = sel.selectAll('path.mean').data((
(trace.type === 'box' && trace.boxmean) ||
(trace.type === 'violin' && trace.box && trace.meanline)
(trace.type === 'violin' && (trace.box || {}).visible && (trace.meanline || {}).visible)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't this just be trace.box.visible && trace.meanline.visible given the changes below?

etpinard added 2 commits July 27, 2018 10:10
... this reduces the occurance of intermittent failure in
    the gl2d_click suite on etpinard's laptop
@etpinard
Copy link
Contributor Author

Editor devs, is adding violins to the chart editor a high priority?

If so, I'm thinking of simply mutating the computed span and bandwidth default values back into gd._fullData and gd.data similar to how we currently handle histogram bins and contour levels.

@etpinard
Copy link
Contributor Author

Ooops, #2850 (comment) was meant for #2834

@etpinard
Copy link
Contributor Author

etpinard commented Sep 7, 2018

@alexcjohnson this PR isn't enough to cover all the items in #2834, but it does fix a few things. It would be nice to release this in next week's v1.41.0.

Tagging as reviewable.

@alexcjohnson
Copy link
Collaborator

Yep, this is great, no need to wait on the stragglers before merging this. 💃

@etpinard etpinard merged commit 40f6ce3 into master Sep 12, 2018
@etpinard etpinard deleted the missing-fulldata branch September 12, 2018 14:37
@dmt0 dmt0 mentioned this pull request Sep 12, 2018
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.

2 participants