-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
finalist: Errorbars inherit color from line or marker color #3408
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
|
Hmm. I don't think we should be considering this a bug fix. This changes a few of our baselines. Personally, I think this PR belongs in the |
src/traces/bar/defaults.js
Outdated
| errorBarsSupplyDefaults(traceIn, traceOut, Color.defaultLine, {axis: 'y'}); | ||
| errorBarsSupplyDefaults(traceIn, traceOut, Color.defaultLine, {axis: 'x', inherit: 'y'}); | ||
| errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || Color.defaultLine, {axis: 'y'}); | ||
| errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || Color.defaultLine, {axis: 'x', inherit: 'y'}); |
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 think markerColor belongs here. That would be invisible against the bars themselves, right? I like lineColor 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.
Yes totally agree.
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 there is also this PR for possibly only fixing this on scatter traces...
|
True, it contains a bit of a change, but mostly I’d call this fixing a bug. To me it’s not such a change that it should be considered breaking but I can understand not calling it just a patch. |
Sounds good, let's panned this one for |
|
💃 nicely done @archmoj ! |
fix #3392 for 5 traces.
Note 1: For
barandhistogramcasesmarker.line.coloris applied as the default color. If undefined then `marker.color' is used if defined.Note 2: For
scatter,scatter3dandscatterglcasesline.coloris applied as the default color. If undefined thenmarker.color' is used if defined. Also note thatmarker.line.coloris not used in this regard; and the trace line color and errorbar lines would usecolorway` in that scenario.@plotly/plotly_js