title: How to change text of legend in chart column c#?
body: <p>i have a problem with chart column in c# , when i want to change text legend to take the x value , it show me this (#VALX) in the place of legend.</p>
  
  <p>and this is my code in <code>formLoad()</code></p>
  
  <pre><code>{
       chart1.DataSource = Remplir("SELECT count(*) AS Expr1, Candidat.Sourcing FROM Sourcing INNER JOIN Candidat ON Sourcing.Sourcing=Candidat.Sourcing GROUP BY Candidat.Sourcing");
       chart1.Series[0].XValueMember = "Sourcing";
       chart1.Series[0].YValueMembers = "Expr1";
       chart1.Series[0].IsVisibleInLegend = true;
  }
  </code></pre>