title: Getting the x value of a point in a mschart
body: <p>I have a polar chart like this
  <img src="https://i.stack.imgur.com/MvoPQ.png" alt="enter image description here"> and when I click on a point in the chart, I need to display x value of that point. I have tried ;</p>
  
  <pre><code>  private void chart1_MouseClick(object sender, MouseEventArgs e)
      {
          double x=0; double y=0;
          var pos = e.Location;
          Point? clickPos = pos;
  
          var results = chart1.HitTest(pos.X, pos.Y, false, ChartElementType.PlottingArea);
              foreach(var result in results) {
  
                  if(result.ChartElementType==ChartElementType.PlottingArea) {
                      x = result.ChartArea.AxisX.PixelPositionToValue(pos.X); ;
                      y=result.ChartArea.AxisY.PixelPositionToValue(pos.Y);
  
                  }
  
                  textBox1.Text=x.ToString();
                  textBox2.Text=y.ToString();
              }
  
  
      }
  </code></pre>
  
  <p>But this code gives me weird coordinates.For example, when I clicked the (0,0) point in the chart, Azimuth is 179, Gain is 5,00123. Anyone help?</p>