protected void AdjustDataBounds(ChartColumnCollection columnSet) { _Ranges.Clear(); Range globalRange = new NumberRange(0, 0); for (int i = 0; i < columnSet.Count; i++) { if (columnSet[i].Range.GetType() == typeof(NumberRange)) { globalRange = globalRange.ExpandTo(columnSet[i].Range); } // Experimental if (_EnableMultipleScales) { _Ranges.AppendRange(columnSet[i].Range); } } if (!_EnableMultipleScales) { _Ranges.AppendRange(globalRange); } }
public bool SmartExpand(NumberRange range) { return(SmartExpand((Range)range)); }