mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-05 01:48:12 +08:00
user defined gene sets scatterplot, remove works (#556)
This commit is contained in:
@@ -161,7 +161,13 @@ class HistogramBrush extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeHistogram() {
|
removeHistogram() {
|
||||||
const { dispatch, field, colorAccessor } = this.props;
|
const {
|
||||||
|
dispatch,
|
||||||
|
field,
|
||||||
|
colorAccessor,
|
||||||
|
scatterplotXXaccessor,
|
||||||
|
scatterplotYYaccessor
|
||||||
|
} = this.props;
|
||||||
dispatch({
|
dispatch({
|
||||||
type: "clear user defined gene",
|
type: "clear user defined gene",
|
||||||
data: field
|
data: field
|
||||||
@@ -171,6 +177,18 @@ class HistogramBrush extends React.Component {
|
|||||||
type: "reset colorscale"
|
type: "reset colorscale"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (field === scatterplotXXaccessor) {
|
||||||
|
dispatch({
|
||||||
|
type: "set scatterplot x",
|
||||||
|
data: null
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (field === scatterplotYYaccessor) {
|
||||||
|
dispatch({
|
||||||
|
type: "set scatterplot y",
|
||||||
|
data: null
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSetGeneAsScatterplotX() {
|
handleSetGeneAsScatterplotX() {
|
||||||
@@ -267,7 +285,7 @@ class HistogramBrush extends React.Component {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div style={{ display: "flex", justifyContent: "flex-end" }}>
|
<div style={{ display: "flex", justifyContent: "flex-end" }}>
|
||||||
{isDiffExp ? (
|
{isDiffExp || isUserDefined ? (
|
||||||
<span>
|
<span>
|
||||||
<span
|
<span
|
||||||
style={{ marginRight: 7 }}
|
style={{ marginRight: 7 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user