Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Remove pattern from funnel attributes and add tests for histogram and barpolar #5537
Remove pattern from funnel attributes and add tests for histogram and barpolar #5537
Changes from 5 commits
b0d186d
9335168
1bddefa
8334830
fc1adf5
4c4828a
0c27bbb
496c643
4de929d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does this call make the loop above, or some of it, moot?
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.
The
trace
variable useseach
loop.I think this part is similar to what
bar
does 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.
It just looked to me as though at least the
Color.fill
andColor.stroke
calls (L27-28) might be duplicated bypointStyle
. NotDrawing.dashLine
and I can't really tell aboutopacity
... but the point isDrawing.pointStyle
does more than apply a pattern, yet the other things it does already worked for funnels prior to this PR.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.
Actually deselect style is broken on
funnel
now.Also strangely if you make a selection on
barpolar
traces ofpattern_bars
mock, the points frombar
traces would be selected!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.
@s417-lama I am about to log off for today. Would you mind investigating this part?
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 investigated the selection issue a little bit.
Seems like determining candidates for selection (
determineSearchTraces
function insrc/plots/cartesian/select.js
) is broken when polar plot and other plots coexist.When we try to select
barpolar
plots,bar
plots are wrongly included in the candidate lists for selection.In
determineSearchTraces
fn, the following line is executed forbar
plots, which is an inappropriate behavior.plotly.js/src/plots/cartesian/select.js
Line 663 in 3f33829
This bug happens because the values of
xAxisIds
andyAxisIds
are set to["x"]
and["y"]
inbarpolar
plots, but by nature polar plots should not have cartesian axes. As a result, the plot which hasx
andy
axes, that isbar
plot in this case, is incorrectly included insearchTraces
. I suggest to clear x-axes and y-axes in case ofbarpolar
plots somewhere in codes.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.
pattern
removed fromfunnel
attributes in 4c4828a. So there is no need to investigate this in the PR.This file was deleted.