title: Change asp chart legend label width
body: <p><a href="https://i.stack.imgur.com/BlPa8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BlPa8.png" alt="Change asp chart legend label width"></a></p>
  
  <p>Aspx</p>
  
  <pre><code>&lt;asp:Chart ID="Chart1" runat="server" Width="600px"&gt;
      &lt;Series&gt;
          &lt;asp:Series Name="Series1" ChartType="Pie" IsValueShownAsLabel="True" Legend="Legend1"&gt;
          &lt;/asp:Series&gt;
      &lt;/Series&gt;
      &lt;ChartAreas&gt;
          &lt;asp:ChartArea Name="ChartArea1" AlignmentOrientation="All"&gt;
              &lt;AxisX TitleAlignment="Near"&gt;
              &lt;/AxisX&gt;
          &lt;/asp:ChartArea&gt;
      &lt;/ChartAreas&gt;
      &lt;Legends&gt;
          &lt;asp:Legend  Name="Legend1" &gt;
          &lt;/asp:Legend&gt;
      &lt;/Legends&gt;
  &lt;/asp:Chart&gt;
  </code></pre>
  
  <p>Code behind</p>
  
  <pre><code>Chart1.Titles.Add(new Title("Completed/Pending Count Anaysis",Docking.Top,new Font("Verdana", 12f, FontStyle.Bold),Color.Black));
  Chart1.Series[0].XValueMember = "COLUMN_NAME";
  Chart1.Series[0].YValueMembers = "H_COUNT";
  Chart1.Series[0].ChartType = SeriesChartType.Pie;
  Chart1.Series[0].IsValueShownAsLabel = false;
  
  Chart1.Series[0].Label = "#PERCENT";
  Chart1.Series[0].LabelFormat = "{0:0%}";
  Chart1.Series[0].LegendText = "#VALX #PERCENT{P2}";
  
  Chart1.Series["Series1"]["PieLabelStyle"] = "outside";
  Chart1.Series[0]["PieStartAngle"] = "45";
  Chart1.Series[0].LabelForeColor = Color.Black;
  
  Chart1.Legends["Legend1"].Docking = Docking.Bottom;
  Chart1.Legends["Legend1"].IsDockedInsideChartArea = false;
  
  Chart1.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;
  Chart1.ChartAreas["ChartArea1"].Area3DStyle.Inclination = 30;
  Chart1.DataSource = ds;
  </code></pre>
  
  <p>Any one have an idea how to fix this?</p>