private void RecalculateXIntervals()
 {
     if (this._chartArea == null || this._chartArea.Series.Count <= 0)
     {
         return;
     }
     if (double.IsNaN(this.XScaleLabelDensity))
     {
         XYSeries xySeries = Enumerable.FirstOrDefault <XYSeries>((IEnumerable <XYSeries>) this._chartArea.Series);
         if (xySeries != null)
         {
             Scale scale = xySeries.XAxis.Scale;
             if (scale != null)
             {
                 this._xScalePositions = LabelVisibilityManager.GetScalePositions(scale);
             }
         }
     }
     else
     {
         this._xScalePositions = LabelVisibilityManager.IterateDoubles(0.0, 1.0, 1.0 / this.XScaleLabelDensity);
     }
     this._dataPointRanges.Clear();
 }