Hi Leute,
ich habe ein kleines Problem und benötige eure Hilfe.
Folgendes:
Ich habe einen Chart mit C# erstellt (siehe Anhang)
Nun möchte ich 2 Datencursor mit der Maus setzen (Siehe Bild GRÜN) und verschieben können und den Abstand zwischen beiden Cursorn berechnen (LILA)
Ich bin dankbar für jeden Tipp.
UTGMK
Seite 1 von 1
C# Chart mit Datencursor
Anzeige
#2
geschrieben 27. April 2012 - 12:07
Habs eben hinbekommen
StripLine stripLine1 = new StripLine();
// Set threshold line so that it is only shown once
stripLine1.Interval = 0;
// Set the threshold line to be drawn at the calculated mean of the first series
stripLine1.IntervalOffset = item+0.5; //Item= Position der Flanke +0,5 damit man den Zwischenwert bekommt
stripLine1.BackColor = Color.YellowGreen;
stripLine1.StripWidth = Data.Length/2*0.01; //Die Stärke/Breite der Linie -> Prozentual
// Set text properties for the threshold line
stripLine1.Text = i.ToString();
stripLine1.ForeColor = Color.Black;
// Add the strip line to the chart
chart1.ChartAreas[textLengende].AxisX.StripLines.Add(stripLine1);
Thema verteilen:
Seite 1 von 1

Hilfe
Neues Thema
Antworten
Nach oben

