Skip to content

Commit

Permalink
Merge pull request #453 from KPMP/KPMP-4949_Tiny_Dots
Browse files Browse the repository at this point in the history
KPMP-4949: Minimum dot size
  • Loading branch information
zwright authored Dec 12, 2023
2 parents 43919ee + 601f54a commit f40741b
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 f40741b

Please sign in to comment.