Hi Joern,
One way to workaround this is by having a custom legend:
// create a chart with some dummy lines
NChart chart = nChartControl1.Charts[0];
Color[] colors = new Color[2];
Random rand = new Random();
for (int i = 0; i < colors.Length; i++)
{
NLineSeries line = new NLineSeries();
line.Values.Add(rand.Next(100));
line.Values.Add(rand.Next(100));
line.Values.Add(rand.Next(100));
line.BorderStyle.Color = colors[i];
line.Name = "Line " + i.ToString();
chart.Series.Add(line);
}
// switch the legend in manual mode
NLegend legend = nChartControl1.Legends[0];
legend.Mode = LegendMode.Manual;
// populate with custom items, synchronized with the series in the chart
for (int i = 0; i < chart.Series.Count; i++)
{
NLegendItemCellData licd = new NLegendItemCellData();
NLineSeries line = chart.Series[i] as NLineSeries;
if (line == null)
continue;
licd.Text = line.Name;
licd.MarkBorderStyle = (NStrokeStyle)line.BorderStyle.Clone();
licd.MarkShape = LegendMarkShape.None;
legend.Data.Items.Add(licd);
}
That way you'll have complete control over what is present in the legend. BTW it is not a good idea to add a series twice in the series collection.
Hope this helps - let us know if you meet any problems.
Best Regards,
Nevron Support Team