title: How to make sure endlabels are always visible on c# chart x axis
body: <p>I have created a chart in the image below and I need to insert in addition to the existing labels, the end labels on the extreme left and right of the x-axis. There are numerous datapoints and therefore I cannot set the interval to 1 for the labels as they'll clutter the axis. I have already tried setting the property </p>
  
  <pre><code> chartHistory.ChartAreas[0].AxisX.LabelStyle.IsEndLabelVisible = true;
  </code></pre>
  
  <p>but it doesn't seem to work. How can I achieve this?<a href="https://i.stack.imgur.com/ZRXT1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZRXT1.png" alt="enter image description here"></a></p>