title: Pie Chart legend text
body: <p>I am trying to display the label name and percentage in the legend of  pie chart that I have in VB.NET.  Below is the code.  I cannot find any library reference or code samples to lead me in the right direction that works in VB.NET. The pie chart looks and works fine except for this.</p>
  
  <p>Can anyone help?</p>
  
  <p>thanks</p>
  
  <pre><code>    PieTable.Columns.Add("Status")
      PieTable.Columns.Add("Count")
      PieTable.Rows.Add("Pass", LineCounter - FailCnt - WarningCnt)
      PieTable.Rows.Add("Fail", FailCnt)
      PieTable.Rows.Add("Warning", WarningCnt)
  
      OverallPieChart.DataSource = PieTable
      OverallPieChart.Width = 250
      OverallPieChart.Height = 100
      OverallPieChart.Series("Series1").XValueMember = "Status"
      OverallPieChart.Series("Series1").YValueMembers = "Count"
  
      OverallPieChart.EnableViewState = True
      OverallPieChart.Series("Series1").ChartType = SeriesChartType.Pie
      OverallPieChart.ChartAreas("ChartArea1").BackColor = Color.Black
      OverallPieChart.ChartAreas("ChartArea1").Area3DStyle.Enable3D = True
      OverallPieChart.BackColor = Color.Black
      'OverallPieChart.Series(0)("PieLabelStyle") = "Outside (#Percent)"
      OverallPieChart.Series(0).LabelForeColor = Color.Beige
      OverallPieChart.ChartAreas("ChartArea1").InnerPlotPosition.Width = 100%
      OverallPieChart.ChartAreas("ChartArea1").InnerPlotPosition.Height = 100%
      OverallPieChart.Series(0)("PieLineColor") = "Transparent"
      OverallPieChart.Series(0)("LabelsRadialLineSize") = "0.15"
      OverallPieChart.Series(0)("LabelsHorizontalLineSize") = "0.15"
      OverallPieChart.Legends.Add("Legent1")
      OverallPieChart.Legends("Legend1").Enabled = True
      OverallPieChart.Legends("Legend1").Docking = Docking.Right
      OverallPieChart.Legends("Legend1").Alignment = System.Drawing.StringAlignment.Far
      OverallPieChart.Legends("Legend1").BackColor = Color.Black
  
      OverallPieChart.Series("Series1").IsVisibleInLegend = True
  </code></pre>