Labels Property (NSeries)
Gets or sets the labels data series.
The following code creates a bar chart with label strings displayed in the data labels and the legend.
Dim bar As NBarSeries = Chart.Series.Add(SeriesType.Bar)
bar.AddDataPoint(New NDataPoint(12, "Bar1"))
bar.AddDataPoint(New NDataPoint(23, "Bar2"))
bar.AddDataPoint(New NDataPoint(14, "Bar3"))
bar.DataLabelStyle.Format = "<label>"
bar.Legend.Mode = SeriesLegendMode.DataPoints
bar.Legend.Format = "<label>"
NBarSeries bar = Chart.Series.Add(SeriesType.Bar);
bar.AddDataPoint(new NDataPoint(12, "Bar1"));
bar.AddDataPoint(new NDataPoint(23, "Bar2"));
bar.AddDataPoint(new NDataPoint(14, "Bar3"));
bar.DataLabelStyle.Format = "<label>";
bar.Legend.Mode = SeriesLegendMode.DataPoints;
bar.Legend.Format = "<label>";
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