Skip to content

Commit

Permalink
only show 3 digits of specificity when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarpenning committed Dec 11, 2024
1 parent ca4045a commit d0a5d8c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ const useBarPlotData = (filteredData: RadarPlotData) =>
type: 'bar',
y: metricBin.values,
x: metricBin.callIds,
text: metricBin.values.map(value => value.toFixed(3)),
text: metricBin.values.map(value =>
Number.isInteger(value) ? value.toString() : value.toFixed(3)
),
textposition: 'outside',
textfont: {size: 14, color: 'black'},
name: metric,
Expand Down

0 comments on commit d0a5d8c

Please sign in to comment.