From 52bda26a4b7bece262311a04bdd616f6e40e5590 Mon Sep 17 00:00:00 2001 From: SmartRootsSrl Date: Thu, 28 May 2026 11:16:46 +0200 Subject: [PATCH] fix: calculate current price for non-WorstOf end labels from series data PriceWorst is only populated by the SP for the WorstOf underlying. For others, derive current price as (last Performance% / 100) * Strike. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- .../Services/Implementations/SkiaChartRendererV2.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs b/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs index 165d010..21d5e3f 100644 --- a/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs +++ b/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs @@ -154,7 +154,8 @@ public static class SkiaChartRendererV2 color = OtherUlColors[otherColorIdx++ % OtherUlColors.Length]; thickness = 1f; seriesLabel = ul.Sottostante; - endLabel = $"{ul.Sottostante} ({ul.PriceWorst:0.00})"; + decimal currentPrice = ulPoints.Last().Performance / 100m * ul.Strike; + endLabel = $"{ul.Sottostante} ({currentPrice:0.00})"; } DrawSeriesV2(canvas, plotArea, ulPoints, minDate, maxDate, minY, maxY, color, thickness);