-
-
Notifications
You must be signed in to change notification settings - Fork 115
Add info message for area trace opacity #198
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
Conversation
src/components/containers/Section.js
Outdated
| const cannotSetTraceOpacity = | ||
| fullContainer.type === 'scatter' && | ||
| (fullContainer.fill !== 'none' || fullContainer.fill !== 'toself'); | ||
|
|
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.
@alexcjohnson is cannotSetTraceOpacity correct?
I feel like since there's an accordion menu for each trace in the editor, the rest of this logic doesn't apply:
https://github.com/plotly/plotly.js/blob/master/src/traces/scatter/clean_data.js#L24
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.
if we're looking at the trace from fullData, we should just be able to use the results of scatter/clean_data, ie fullContainer.type === 'scatter' && fullContainer.opacity === undefined, right? Because the multi-trace aspect of it is really important for alleviating confusion and you're right that you don't want to try and reconstruct that here.
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.
thanks! will do that
28735ff to
f33b2ab
Compare
|
@bpostlethwaite @alexcjohnson can I merge? |
want to rebase while I look at it again? |
alexcjohnson
left a comment
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.
Looks good! 💃
8e18fe2 to
e7e9f03
Compare
closes: #70
