Skip to content

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

Merged
merged 2 commits into from
Jan 5, 2018
Merged

Conversation

VeraZab
Copy link
Contributor

@VeraZab VeraZab commented Jan 3, 2018

closes: #70
screen shot 2018-01-03 at 12 21 11 pm

const cannotSetTraceOpacity =
fullContainer.type === 'scatter' &&
(fullContainer.fill !== 'none' || fullContainer.fill !== 'toself');

Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks! will do that

@VeraZab VeraZab force-pushed the add-opacity-message branch from 28735ff to f33b2ab Compare January 5, 2018 02:05
@VeraZab
Copy link
Contributor Author

VeraZab commented Jan 5, 2018

@bpostlethwaite @alexcjohnson can I merge?

@alexcjohnson
Copy link
Collaborator

can I merge?

want to rebase while I look at it again?

alexcjohnson
alexcjohnson previously approved these changes Jan 5, 2018
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Looks good! 💃

@VeraZab VeraZab force-pushed the add-opacity-message branch from 8e18fe2 to e7e9f03 Compare January 5, 2018 03:44
@VeraZab VeraZab merged commit a07914d into master Jan 5, 2018
@VeraZab VeraZab deleted the add-opacity-message branch January 5, 2018 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Info message for when trace opacity is not supported
2 participants