From 601f54a2687d98e136eb41c7fc259210da795cb7 Mon Sep 17 00:00:00 2001 From: Zach Wright Date: Tue, 12 Dec 2023 14:11:40 -0500 Subject: [PATCH] KPMP-4949: Minimum dot size --- src/components/Plots/LMDDotPlot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Plots/LMDDotPlot.js b/src/components/Plots/LMDDotPlot.js index e2b51f2b..2bf6e7b0 100644 --- a/src/components/Plots/LMDDotPlot.js +++ b/src/components/Plots/LMDDotPlot.js @@ -16,6 +16,7 @@ class LMDDotPlot extends Component { isLoading: false, }; this.setData(props.data); + this.minBubbleSize = 3; } componentDidUpdate(prevProps) { @@ -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; @@ -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)' },