title: c# How to show Chart Y value Label using Linq
body: <p><a href="https://i.stack.imgur.com/bEvXr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bEvXr.png" alt="enter image description here"></a>
  This one Linq code I have in  FormLoad event:</p>
  
  <pre><code>ShowChartReport();
  
              chart1.Series.Clear();
  
              var series = chart1.Series.Add("Series1");
              series.XValueMember = "ProduktId";
              series.YValueMembers = "TolatlSold"; 
              series.Name = "Products";
              chart1.ChartAreas["ChartArea1"].AxisX.Interval = 1;
  </code></pre>
  
  <p>And then this following methode for chart upploading</p>
  
  <pre><code>private void ShowChartReport()
          {
              using (CoffeEntities db = new CoffeEntities())
              {
                  var result = (from pr in db.SaleDetails
                                group pr by pr.Product.Description into g
                                select new
                                {
                                    ProduktId = g.Key,
                                    TolatlSold = g.Count()
  
  
                                }).ToList();
                  chart1.DataSource = result;  
                  chart1.DataBind();
                  chart1.Show();
  
              }
          }
  </code></pre>
  
  <p>I tried even like this inside ShowChartReport()</p>
  
  <pre><code>chart1.Series["ProduktId"].IsValueShownAsLabel = true;
  chart1.Series["TolatlSold"].IsValueShownAsLabel = true;
  </code></pre>
  
  <p>But stil I can not see those Y value Label in every chart element. </p>
  
  <p>It's exactly like this question <a href="https://stackoverflow.com/questions/44784648/how-to-display-values-on-chart-graph-using-c-sharp">how to display values on chart graph using c#</a> 
   I want but I'am using Linq and confusing me How to do...  I  would be grateful if you could help me</p>