Пример #1
0
 internal static void SetLabelMaxMovingDistance(XYChartArea chartArea, UIElement element)
 {
     double maximumMovingDistance = 0.0;
     if (chartArea.Orientation == Orientation.Horizontal)
         maximumMovingDistance = 40.0;
     AnchorPanel.SetMaximumMovingDistance(element, maximumMovingDistance);
 }
Пример #2
0
        internal static void SetLabelMaxMovingDistance(XYChartArea chartArea, UIElement element)
        {
            double maximumMovingDistance = 0.0;

            if (chartArea.Orientation == Orientation.Horizontal)
            {
                maximumMovingDistance = 40.0;
            }
            AnchorPanel.SetMaximumMovingDistance(element, maximumMovingDistance);
        }
Пример #3
0
        private static void OnOrientationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            XYChartArea xyChartArea = (XYChartArea)d;
            Orientation oldValue    = (Orientation)e.OldValue;
            Orientation newValue    = (Orientation)e.NewValue;

            if (oldValue == newValue)
            {
                return;
            }
            xyChartArea.OnOrientationPropertyChanged(oldValue, newValue);
        }
Пример #4
0
        public void ComputeAndSetSizeRangeOnAllBubbleSeries()
        {
            double      num1        = double.MaxValue;
            double      num2        = double.MinValue;
            XYChartArea xyChartArea = (XYChartArea)this.ChartArea;

            if (xyChartArea == null)
            {
                return;
            }
            foreach (Series series in xyChartArea.Series)
            {
                BubbleSeries bubbleSeries = series as BubbleSeries;
                if (bubbleSeries != null)
                {
                    Range <IComparable> sizeDataRange = bubbleSeries.GetSizeDataRange();
                    if (sizeDataRange.HasData)
                    {
                        if (ValueHelper.IsNumeric((object)sizeDataRange.Minimum) && Convert.ToDouble((object)sizeDataRange.Minimum, (IFormatProvider)CultureInfo.InvariantCulture) < num1)
                        {
                            num1 = Convert.ToDouble((object)sizeDataRange.Minimum, (IFormatProvider)CultureInfo.InvariantCulture);
                        }
                        if (ValueHelper.IsNumeric((object)sizeDataRange.Maximum) && Convert.ToDouble((object)sizeDataRange.Maximum, (IFormatProvider)CultureInfo.InvariantCulture) > num2)
                        {
                            num2 = Convert.ToDouble((object)sizeDataRange.Maximum, (IFormatProvider)CultureInfo.InvariantCulture);
                        }
                    }
                }
            }
            if (num1 == double.MaxValue && num2 == double.MinValue)
            {
                return;
            }
            Range <IComparable> dataRange = new Range <IComparable>((IComparable)num1, (IComparable)num2);

            foreach (Series series in xyChartArea.Series)
            {
                BubbleSeries bubbleSeries = series as BubbleSeries;
                if (bubbleSeries != null && !bubbleSeries.SizeDataRange.HasValue)
                {
                    bubbleSeries.ActualSizeDataRange = this.CalculateActualSizeDataRange(dataRange);
                }
            }
        }
Пример #5
0
 public LabelVisibilityManager(XYChartArea chartArea)
 {
     this._chartArea = chartArea;
 }
Пример #6
0
 public LabelVisibilityManager(XYChartArea chartArea)
 {
     this._chartArea = chartArea;
 }