TAChart: Fix bar series not showing bars with values < 1 Issue #34863

git-svn-id: branches/fixes_2_0@60378 -
This commit is contained in:
mattias 2019-02-09 08:45:25 +00:00
parent bb9ed36afa
commit 511744bfa6

View File

@ -1217,7 +1217,8 @@ begin
if IsEmpty then exit;
if BarWidthStyle = bwPercentMin then
UpdateMinXRange;
UpdateMinMax(ZeroLevel, Result.a.Y, Result.b.Y);
UpdateMinMax(GraphToAxisY(ZeroLevel), Result.a.Y, Result.b.Y);
// Show first and last bars fully.
i := 0;
x := NearestXNumber(i, +1); // --> x is in graph units