title: Chart control: how to hide axis labels when there is no related chart point?
body: <p>I want to hide chart labels when there is no related point on chart. How can i do this? On the pictures below you can see a series of two points with 2 min interval. I want to hide middle label, since there is no related data point. <code>CustomDrawAxisLabel</code> event is not working since for some reason it fires for each label. Here is what i am trying to do inside of this event: </p>
  
  <pre><code>if (axis is AxisX || axis is AxisX3D || axis is RadarAxisX)
  {
      DateTime dateTime = (DateTime)e.Item.AxisValue;
      if (dateTime == null)
      {
          e.Item.Text = "";
      }
  </code></pre>
  
  <p>It's not working since <code>e.Item.AxisValue</code> returns me current axis label value (including middle one i want to hide), not related chart point. How can i access chart data inside this event by axis value?</p>
  
  <p>Actual:</p>
  
  <p><a href="https://i.stack.imgur.com/Tftq8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tftq8.jpg" alt="enter image description here"></a></p>
  
  <p>Desired:</p>
  
  <p><a href="https://i.stack.imgur.com/DGLqk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DGLqk.jpg" alt="enter image description here"></a></p>