flexChart1.BeginUpdate();
var pointsList = new List<DataItem>();
foreach (var data in TraceOne)
{
pointsList.Add(new DataItem()
{
MLOG = data.MLOG,
FREQ = data.Freq.ToString(),
});
}
AnnotationLayer annotationLayer = new AnnotationLayer(flexChart1);
annotationLayer.Annotations.Add(new C1.Win.Chart.Annotation.Image(YCATE.Properties.Resources.Mark3)
{
SeriesIndex = 0,
PointIndex = index,
Attachment = AnnotationAttachment.DataIndex,
TooltipText = "Mark" + (i + 1).ToString()
});
//flexChart1.DataSource = pointsList.ToArray();
flexChart1.EndUpdate();
|