fix: hide CTF series when NumPrezziCFT < 30 (same behavior as old DevExpress)

This commit is contained in:
2026-05-27 18:19:19 +02:00
parent f9a7d7a8d2
commit a848d21519

View File

@@ -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));