-
Notifications
You must be signed in to change notification settings - Fork 163
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
Color tree by measurements #1924
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
d90c503
MeasurementsControlState: Remove unnecessary trailing commas
joverlee521 6c2e53b
measurements: Fix bug for numeric legend values in ordering
joverlee521 15dabdf
Add color tree by measurements feature
joverlee521 14a5650
ADD_EXTRA_METADATA: only use non-continuous colorings as filter traits
joverlee521 1391b9b
applyMeasurementsColorBy: Use multiple anchors for color scale
joverlee521 acf11a4
measurements: Refactor getting matching filters into separate function
joverlee521 a4b4d9c
applyMeasurementsColorBy: Only include measurements that pass filters
joverlee521 69853e2
measurements: Save color grouping value as a separate state
joverlee521 8b2773e
applyMeasurementsColorBy: remove old measurements coloring data
joverlee521 74eac4a
applyMeasurementsColorBy: batch dispatch actions
joverlee521 c0b7e91
Refactor `applyMeasurementsColorBy` into small functions
joverlee521 e1c74a4
Update measurements coloring when changing collection
joverlee521 9a5a183
Update measurements coloring when changing group by
joverlee521 3c35ed5
Update measurement coloring when updating measurements filters
joverlee521 c2db2bb
Update type `ColoringInfo`
joverlee521 17d411c
Refactor `addMeasurementsColorData` into smaller function
joverlee521 ade2c20
Support measurements coloring URL param `c=m-<grouping_value>`
joverlee521 440cddd
Add crosshair in measurements panel y-axis for coloring
joverlee521 ff28517
measurements: Allow click on grouping when current colorby is different
joverlee521 795efc7
Remove extra whitespace
joverlee521 9a4c328
tree: Add crosshair on tip matching measurements color grouping
joverlee521 5d51e9c
tree: re-draw measurements crosshair when modifying SVG
joverlee521 0dbc4e3
tree: update measurements crosshair when changing colorBy
joverlee521 fb3eba0
narratives: Ensure tree coloring is calculated for measurements colors
joverlee521 a2cfe54
narratives: Ensure old measurements coloring data is removed
joverlee521 bb44c2a
modifySVGInStages: remove crosshair in step 1
joverlee521 82e6f6d
Add comments for measurementColoringPrefix
joverlee521 9f6b032
Add tooltip to hint at color by measurements feature
joverlee521 27cdbb0
Click on measurements grouping to toggle back to previous coloring
joverlee521 e52f48d
Update type ColoringInfo: make `scale` optional
joverlee521 972ed91
Add `_hasMeasurementColor` attr and coloring for measurements coloring
joverlee521 e586a6c
Filter to colored tips when applying measurements coloring
joverlee521 921161c
measurements: Use `String` instead of `toString`
joverlee521 aead1cf
removeNodeAttrs: drop unnecessary conditional
joverlee521 daccd78
Update changelog
joverlee521 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 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
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.
A few minor points - don't change them if you don't agree with them:
toString
will raise an exception on certain values (null
,undefined
etc) whereasString
will not, and the latter can be succinctly written as.map(String)
. ThelegendValues
areany[]
so these values may occur? I'm surprisedtsc
didn't complain.Object.keys
you mention - I followed the code a little bit but didn't find it.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.
Ah good point about
toString
raising exceptions, I'll update toString
. (Edit: updated in 921161c.)These are referring to the coloring attributes, so yes these correspond to the node attributes / node values.
These are referring to where the node attributes get compared to the legend values for ordering. These are in measurementsD3.js, within jitterRawMeansByColorBy and drawMeansForColorBy.