Hi Teddy,
We tested the code and it appears to be working as expected. We also changed it a little bit so that it really adds 100 data points and still everything looks OK. Here is the full example (in C#):
private void Form1_Load(object sender, EventArgs e)
{
Random rand = new Random();
NLineSeries series = new NLineSeries();
series.DataLabelStyle.Visible = false;
NChart chart = nChartControl1.Charts[0];
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = new NLinearScaleConfigurator();
chart.Series.Add(series);
for (int i = 0; i < 100; i++)
{
series.XValues.Add(i);
series.Values.Add(Math.Sin(i * 0.08) * 3000 + rand.NextDouble() * 1000);
}
for (int i = 26; i < 75; i++)
{
series.BorderStyles[i] = new NStrokeStyle(Color.Red);
}
}
The attached image shows the output. Maybe there is some difference in the series settings? Is shadow drawing enabled for the series?
Best Regards,
Nevron Support Team