-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Drop support for deprecated error bar opacity
attribute (use alpha channel of error bar color
attribute instead)
#7216
Conversation
…rror bar 'color' attribute instead)
@@ -72,16 +72,14 @@ | |||
"value": 0.1, | |||
"color": "#85144B", | |||
"thickness": 1.5, | |||
"width": 3, | |||
"opacity": 1 |
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.
just for my own learning, what happened to "opacity"
?
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.
opacity
can also be specified by using the alpha channel of the color
attribute, which defaults to full-opacity, so the same image result can be achieved without explicitly setting the opacity.
I guess for the purposes of this test it might make sense to include it explicitly though.
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.
very happy to use color instead (fewer parameters is better) - was just wondering how we were now handling it - thanks
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.
I don't know why we chose to deprecate opacity
here though and not elsewhere, maybe @archmoj has an idea
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.
In some places - particularly where multiple colors or multiple objects are involved - there are many different effects you can achieve depending on exactly where you set the opacity

Here though I guess there's nothing you can't achieve just with the opacity of the color.
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.
That makes perfect sense -- thanks @alexcjohnson .
test/plot-schema.json
Outdated
@@ -17391,7 +17384,7 @@ | |||
"valType": "string" | |||
}, | |||
"color": { | |||
"description": "Sets the stoke color of the error bars.", | |||
"description": "Sets the stroke color of the error bars.", |
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.
good catch
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.
💃
FYI @archmoj I updated the |
Closes #7197
opacity
attribute (use alpha channel of error barcolor
attribute instead)