fix: hide CTF series when NumPrezziCFT < 30 (same behavior as old DevExpress)
This commit is contained in:
@@ -123,7 +123,9 @@ public static class SkiaChartRendererV2
|
|||||||
var seriesLegend = new List<(string name, SKColor color, bool dashed, float thickness)>();
|
var seriesLegend = new List<(string name, SKColor color, bool dashed, float thickness)>();
|
||||||
int otherColorIdx = 0;
|
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);
|
DrawSeriesV2(canvas, plotArea, ctfPoints, minDate, maxDate, minY, maxY, CertColor, 2.5f);
|
||||||
seriesLegend.Add((data.Isin, CertColor, false, 2.5f));
|
seriesLegend.Add((data.Isin, CertColor, false, 2.5f));
|
||||||
|
|||||||
Reference in New Issue
Block a user