Skip to content

Commit

Permalink
KPMP-4949: Minimum dot size
Browse files Browse the repository at this point in the history
  • Loading branch information
zwright committed Dec 12, 2023
1 parent 43919ee commit 601f54a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Plots/LMDDotPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class LMDDotPlot extends Component {
isLoading: false,
};
this.setData(props.data);
this.minBubbleSize = 3;
}

componentDidUpdate(prevProps) {
Expand Down Expand Up @@ -61,7 +62,8 @@ class LMDDotPlot extends Component {
sizemode: 'area',
sizeref: this.getSizeRef(bubbles),
symbol: 'circle',
color: 'black'
color: 'black',
sizemin: this.minBubbleSize
}
};
return plotObj;
Expand Down Expand Up @@ -102,6 +104,7 @@ class LMDDotPlot extends Component {
symbol: 'circle',
colorscale: 'RdBu',
showscale: true,
sizemin: this.minBubbleSize,
reversescale: false,
color: colors,
colorbar: { title: 'log2 (Fold Change)' },
Expand Down

0 comments on commit 601f54a

Please sign in to comment.