diff --git a/src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/Geometries/LabelGeometry.cs b/src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/Geometries/LabelGeometry.cs index 350eef609..66769135d 100644 --- a/src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/Geometries/LabelGeometry.cs +++ b/src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/Geometries/LabelGeometry.cs @@ -263,7 +263,9 @@ private IEnumerable GetLinesByMaxWidth(string source, SKPaint paint) _ = sb2.Append(word); _ = paint.MeasureText(sb2.ToString(), ref bounds); - if (bounds.Width > mw) + // if the line has already content and the new word exceeds the max width + // then we create a new line + if (sb.Length > 0 && bounds.Width > mw) { yield return sb.ToString(); _ = sb.Clear();