Skip to content

Draw box/violin pts as legend item when other parts have opacity 0 #3846

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 1 commit into from
May 17, 2019

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented May 8, 2019

@etpinard etpinard added bug something broken status: reviewable labels May 8, 2019
@etpinard etpinard added this to the v1.48.0 milestone May 8, 2019

p.style('stroke-width', w + 'px')
.call(Color.fill, trace.fillcolor);
if((trace.boxpoints === 'all' || trace.points === 'all') &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nicolaskruchten do you use other (box)points values for your px strip traces?

If so, we might need to add logic for marker.outliercolor, marker.line.outliercolor and marker.line.outlierwidth in the block below.

Copy link
Collaborator

Choose a reason for hiding this comment

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

might be interesting to add a mode where we show all points but style [suspected]outliers differently - but currently these other modes both hide the non-outlier points entirely - which seems like an awfully bad idea to combine with hiding the box/violin!

Copy link
Contributor

Choose a reason for hiding this comment

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

for px I was planning on using 'all', because of @alexcjohnson's comment :) so this is looking great to me :)

@archmoj
Copy link
Contributor

archmoj commented May 9, 2019

Codepen After.

@antoinerg
Copy link
Contributor

Looks good to me 💃

@etpinard etpinard merged commit 2bbf486 into master May 17, 2019
@etpinard etpinard deleted the box-violin-legend-item-just-pts branch May 17, 2019 21:26
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.

Box legend marker with invisible box but visible points
5 participants