-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add plot controls to volcano plots #404
Conversation
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.
Looks great! Works perfectly! Can we put the marker opacity slider under Plot Controls please?
And i agree with all the notes you left. We don't need the auto-zoom, full, and custom because we don't have a difference between auto-zoom and full, since there are no display ranges here!
@@ -166,6 +166,24 @@ const modalPlotContainerStyles = { | |||
margin: 'auto', | |||
}; | |||
|
|||
// implement gradient color for slider opacity | |||
export const colorSpecProps: SliderWidgetProps['colorSpec'] = { |
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.
since we're going to use this elsewhere, shall we give it a more descriptive name? Maybe sliderOpacityColorSpecProps
? Or something with "gradient color" in 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.
I wonder do we have anywhere more general for this to live?
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 remember thinking the same thing, so I'll see what I can come up with!
...libs/eda/src/lib/core/components/visualizations/implementations/VolcanoPlotVisualization.tsx
Show resolved
Hide resolved
...libs/eda/src/lib/core/components/visualizations/implementations/VolcanoPlotVisualization.tsx
Outdated
Show resolved
Hide resolved
...libs/eda/src/lib/core/components/visualizations/implementations/VolcanoPlotVisualization.tsx
Outdated
Show resolved
Hide resolved
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.
Looks great! Thanks @jernestmyers !
Resolves items 5 and 6 from #358
NOTE: this work is branched off of #392(merged)Notes:
Math.floor()
on the min values andMath.ceil()
on the max values.X-axis controls
with `X-axis range beneath it and likewise for the y-axis. It felt weird to have the Header/Subheader relationship when the only controls are for the ranges.Happy to make any changes to the decisions/assumptions I made.