From a848d21519e51198fbbd59946a530db110fc6edc Mon Sep 17 00:00:00 2001 From: SmartRootsSrl Date: Wed, 27 May 2026 18:19:19 +0200 Subject: [PATCH] fix: hide CTF series when NumPrezziCFT < 30 (same behavior as old DevExpress) --- .../Services/Implementations/SkiaChartRendererV2.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs b/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs index 6fa6f5a..e6145ff 100644 --- a/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs +++ b/CertReports.Syncfusion/Services/Implementations/SkiaChartRendererV2.cs @@ -123,7 +123,9 @@ public static class SkiaChartRendererV2 var seriesLegend = new List<(string name, SKColor color, bool dashed, float thickness)>(); int otherColorIdx = 0; - if (seriesByUl.TryGetValue(0, out var ctfPoints) && ctfPoints.Count >= 2) + // Mostra la serie CTF solo se ha almeno 30 prezzi EOD (identico al vecchio DevExpress) + if (seriesByUl.TryGetValue(0, out var ctfPoints) && ctfPoints.Count >= 2 + && data.GlobalMeta.NumPrezziCFT >= 30) { DrawSeriesV2(canvas, plotArea, ctfPoints, minDate, maxDate, minY, maxY, CertColor, 2.5f); seriesLegend.Add((data.Isin, CertColor, false, 2.5f));