Microcharts icon indicating copy to clipboard operation
Microcharts copied to clipboard

[Bug] BarChart Y-Axis Labels clipped (not drawn on canvas) 1.0.0-preview1

Open twofingerrightclick opened this issue 2 years ago • 0 comments

Describe the bug The last characters of the longest Y Axis Labels on bar charts are clipped from the canvas. The Y-Axis Label Text size by default is way too small, and so when setting YAxisTextPaint.TextSize to a legible value the clipping becomes even more apparent. But it occurs at the micro default text size as well.

Which platform and version is this for? 1.0.0-preview1 and Android for sure. Wasn't able reproduce on iOS 14.8

To Reproduce Create a bar chart with Y Axis Labels Turned on. Expected behavior Y axis labels will be drawn within the canvas

Screenshots default

TextSizeAdjusted

Possible Code to look at: https://github.com/microcharts-dotnet/Microcharts/blob/fb06a0a0a670ada61e88f815b72f79045f0e3490/Sources/Microcharts/Helpers/DrawHelper.cs#L95

twofingerrightclick avatar Jul 19 '22 18:07 twofingerrightclick