title: ASP.NET Chart Control - Add Label to AxisY Crossing without removing automatic labels of major grid lines
body: <p>I am using the <a href="http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx" rel="nofollow noreferrer">ASP.NET Chart Control</a> that Microsoft provides. I have a simple 2D chart with two series in it, one is positive and the other is negative. Here is what it looks like currently: <img src="https://i.stack.imgur.com/2OmCI.png" alt="Picture of my chart"></p>
  
  <p>I am guessing, because of my data range that the Y Axis at zero does not display by default. But if I add this line it does (as you can see in the above image):</p>
  
  <pre><code>AxisY.Crossing = 0;
  </code></pre>
  
  <p>AxisY is a reference to the Y Axis object. Is there a way to now label the axis without having to manually label all the major grid lines? If I do this it will label the Axis, but all the other dollar labels disappear:</p>
  
  <pre><code>Chart.ChartAreas[0].AxisY.CustomLabels.Add(new CustomLabel(0, 1, "0", 0, LabelMarkStyle.SideMark));
  </code></pre>
  
  <p>Here is my ASP.NET code:</p>
  
  <pre><code> &lt;asp:Chart ID="chartStudyResults" runat="server" AntiAliasing="All" 
          Height="650px" Width="690px"&gt;
          &lt;Series&gt;
          &lt;/Series&gt;
          &lt;ChartAreas&gt;
              &lt;asp:ChartArea Name="main" IsSameFontSizeForAllAxes="true"&gt;
                  &lt;AxisX Interval="1" IntervalAutoMode="VariableCount"&gt;                    
                      &lt;MajorGrid Enabled="false" /&gt;                                
                  &lt;/AxisX&gt;                        
                  &lt;AxisY&gt;
                      &lt;MajorGrid Enabled="true" /&gt;
                  &lt;/AxisY&gt;
              &lt;/asp:ChartArea&gt;
          &lt;/ChartAreas&gt;
      &lt;/asp:Chart&gt; 
  </code></pre>
  
  <p>I am adding the series data in code. Thanks in advance.</p>