Group: Forum Members
Last Active: 9 Years Ago
Posts: 2,
Visits: 2
|
I use the following code to create and display a line with some text at the line's midpoint. With SamplingMode enabled, the label does not appear. With SamplingMode disabled, it does. I would like to get some of the performance gains out of using SamplingMode, but is there a way to do it such that the label will show up?
private void DisplaySpectrum(SpectrumViewModel s) { var line = (NLineSeries)nccSpectra.Charts[0].Series.Add(SeriesType.Line);
line.Tag = s; line.Name = s.Name; line.UseXValues = true; //line.SamplingMode = SeriesSamplingMode.Enabled;
line.DataLabelStyle.Visible = true; line.DataLabelStyle.Format = "
|