The data contained in the legend.
The following example creates a new legend item and adds it to the legend.
Dim legend As Legend = CType(NChartControl.Legends(0), Legend)
legend.Mode = LegendMode.Manual
item = New LegendDataItem()
item.Text = "Custom legend item"
item.MarkShape = LegendMarkShape.Rectangle
legend.Data.Items.Add(item)
Legend legend = (Legend)NChartControl.Legends[0];
legend.Mode = LegendMode.Manual;
item = new LegendDataItem();
item.Text = "Custom legend item"
item.MarkShape = LegendMarkShape.Rectangle;
legend.Data.Items.Add(item);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2