Skip to content

Commit

Permalink
always show label for pie chart when ratio larger than 0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
dippindots committed Nov 22, 2022
1 parent 9cf03e9 commit ea35cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/studyView/charts/pieChart/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default class PieChart extends React.Component<IPieChartProps, {}>

@autobind
private label(d: ClinicalDataCountSummary) {
return d.count / this.totalCount > 0.5
return d.count / this.totalCount > 0.25
? d.count.toLocaleString()
: this.maxLength(
d.count / this.totalCount,
Expand Down

0 comments on commit ea35cec

Please sign in to comment.