Profile Picture

SamplingMode and Line label

Posted By John Palmer 12 Years Ago
Author
Message
John Palmer
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

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 = "




Similar Topics


Reading This Topic