-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
multiple selections on parcoords axes #2415
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
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9208cc3
- factored out brushing
monfera 40b0c2b
- full refactor of shader code, DRY, optimizations etc.
monfera 7f507c3
remove constraintrange from parcoords mocks
alexcjohnson d25d261
tweak the parcoords constraint grabber ranges
alexcjohnson 367e294
parcoords constraint cleanup
alexcjohnson 1030542
dimension.multiselect boolean attr
alexcjohnson c046397
Merge branch 'master' into parcoords-multiselect-squashed
alexcjohnson a4f4a5f
info_array dimensions='1-2'
alexcjohnson a78db76
finalize multiselect functionality
alexcjohnson 01ba11e
:hocho: fdescribe
alexcjohnson 68e9e48
lint axisbrush
alexcjohnson cb00901
fail -> failTest - fail is a jasmine global
alexcjohnson f2690ac
fix one more filter bug, refactor parcoords test to hopefully reuse c…
alexcjohnson ec44922
refactor more of parcoords test to use Plotly.react
alexcjohnson 352a884
parentElement -> parentNode
alexcjohnson 57085e1
shorten parcoords snap tweening during tests
alexcjohnson fff668a
@flaky on ordinal constraint snap test
alexcjohnson 6fe2d79
I give up... @noCI my new tests
alexcjohnson 2911ae6
:hocho: parcoords memory leak
alexcjohnson fa1a436
parcoords create/update pattern
alexcjohnson 0e75c5a
parcoords test cleanup
alexcjohnson a7bd686
click to select an ordinal value
alexcjohnson 6432b89
cleanup, and remove some obsolete code
alexcjohnson 03d8779
tweaked parcoords mocks
alexcjohnson f147644
Revert "tweaked parcoords mocks"
alexcjohnson c3cc927
fix bug introduced in cleanup
alexcjohnson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
This just shows the current structure, there won't be a limit of two specified intervals.
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.
(for my own notes, @monfera don't worry about this unless it's blocking you)
If we merge in master, particularly #2399, we can use 2D and/or unbounded free-length
info_array
.I'm not sure the best way to handle it though - since the vast majority of cases will still use a single range, I'd like to keep
constraintrange
1D rather than forcing people to wrap it into 2D. So the two options that occur to me are:[min1, max1, min2, max2, min3, max3...]
- this would be fairly simple for us to work with, and seems easy to describe to users, not sure how intuitive it will be for them to use though.constraintranges
that we switch to when there are multiple ranges. That would be more plumbing on our side, and we'd have to decide which one wins in a conflict, but the structure may be more intuitive.@etpinard thoughts?
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.
Users should not have to make
constraintrange
2D to set a single constraint.I'll like to add a third option, make
constraintrange
1D OR 2D. This would be a first for info arrays, but note that some data arrays already use this pattern (e.g. heatmapx
andy
).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.
Another aspect is that the functionality is initially discussed specifically for ordinal dimensions, where it'd be natural to simply list values, eg.
[1, 5, 8, 12]
, and even to mix singular values and ranges, like[1, [5, 8], 12]
meaning 1, 5 to 8 and 12. It would be possible to support this, but it wouldn't blend well with using an 1D array for a single range, because then an 1D array with two elements could be interpreted as either a single range, or as two discrete values.