DashBoard Chart Data Labels
Dear FriendsHow to data labels to Bar Chart from Performance Point Services.
System.Web.UI.DataVisualization.Charting.ChartArea chartarea = new System.Web.UI.DataVisualization.Charting.ChartArea("Chartarea");
chartarea.AxisX.MajorGrid.Enabled = false;
chartarea.AxisY.MajorGrid.Enabled = false;
Chart1.ChartAreas.Add(chartarea);
Chart1.ChartAreas["Chartarea"].Area3DStyle.Enable3D = true;
Chart1.ChartAreas[0].Area3DStyle.Inclination = -20;
Chart1.DataBind();
Chart1.ChartAreas[0].AxisX.Interval = 1;
Chart1.Series[0].IsValueShownAsLabel = true;
Random random = new Random();
foreach (var item in Chart1.Series[0].Points)
{
System.Drawing.Color c = System.Drawing.Color.FromArgb(random.Next(0, 255), random.Next(0, 255), random.Next(0, 255));
item.Color = c;
item.IsVisibleInLegend = true;
}