1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:42:54 +08:00

Add minimum height to the timing distribution graph

This commit is contained in:
smoogipoo 2020-06-19 22:21:34 +09:00
parent 486b899e8f
commit 4cb49cd606

View File

@ -69,7 +69,7 @@ namespace osu.Game.Screens.Ranking.Statistics
int maxCount = bins.Max();
var bars = new Drawable[total_timing_distribution_bins];
for (int i = 0; i < bars.Length; i++)
bars[i] = new Bar { Height = (float)bins[i] / maxCount };
bars[i] = new Bar { Height = Math.Max(0.05f, (float)bins[i] / maxCount) };
Container axisFlow;