Skip to content

Add marker.opacity to bar traces #1862

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

Closed
saimaparveen opened this issue Jul 7, 2017 · 4 comments
Closed

Add marker.opacity to bar traces #1862

saimaparveen opened this issue Jul 7, 2017 · 4 comments
Labels
community community contribution feature something new

Comments

@saimaparveen
Copy link

Hi,

Opacity of bar chart not changing.
https://codepen.io/saimaparveen/pen/WOgKYJ

If i remove type:'bar' for scatter plot opacity is working fine.

Thanks,
Saima Parveen

@etpinard
Copy link
Contributor

etpinard commented Jul 7, 2017

CodePen w/o commented-out blocks: https://codepen.io/etpinard/pen/xrayzz?editors=1010

@saimaparveen Thanks for report!

@etpinard etpinard added the bug something broken label Jul 7, 2017
@saimaparveen
Copy link
Author

Is there any workaround for this issue?

@etpinard
Copy link
Contributor

Is there any workaround for this issue?

Try plotting separate traces with different scalar opacity values or wait for a patch.

@etpinard
Copy link
Contributor

After looking at this more closely, it appears that marker.opacity has never been part of bar trace schema in v1.x. So this ticket isn't a bug. Passing the data array from the codepen above to Plotly.validate correctly outputs key marker.opacity is not part of the schema .

I wouldn't be opposed to adding marker.opacity to bar traces, but this will be a low-priority ticket in the short term. Community PRs are welcomed though.

Note that trace-wide opacity scalar values due work for bars and setting marker.color as rgba values also works. See https://codepen.io/etpinard/pen/JJqjgy?editors=1010

@etpinard etpinard added community community contribution feature something new and removed bug something broken labels Jul 17, 2017
@etpinard etpinard changed the title Bar chart opacity not changing Add marker.opacity to bar traces Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community contribution feature something new
Projects
None yet
Development

No branches or pull requests

2 participants