Gives you access to the labels data series.
The following code creates a bar chart with labels shown in the data point labels
and the legend.
Dim bar As BarSeries = Chart.Series.Add(SeriesType.Bar)
bar.Values.Add(12, "Bar1")
bar.Values.Add(23, "Bar2")
bar.Values.Add(14, "Bar3")
bar.DataLabels.Mode = DataLabelsMode.Every
bar.DataLabels.Every = 1
bar.DataLabels.Format = "<label>"
bar.Legend.Mode = SeriesLegendMode.DataPoints
bar.Legend.Format = "<label>"
BarSeries bar = Chart.Series.Add(SeriesType.Bar);
bar.Values.Add(12, "Bar1");
bar.Values.Add(23, "Bar2");
bar.Values.Add(14, "Bar3");
bar.DataLabels.Mode = DataLabelsMode.Every;
bar.DataLabels.Every = 1;
bar.DataLabels.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