Example #1
0
 /// <summary>
 ///     Split the data series by value where the second plot contains all values less than a maximum value. This is only
 ///     for bar-of-pie or pie-of-pie charts.
 /// </summary>
 /// <param name="MaxValue">The maximum value.</param>
 public void SplitSeriesByValue(double MaxValue)
 {
     HasSplit      = true;
     SplitType     = C.SplitValues.Value;
     SplitPosition = MaxValue;
     SecondPiePoints.Clear();
 }
Example #2
0
 /// <summary>
 ///     Split the data series by percentage where the second plot contains all values less than a percentage of the sum.
 ///     This is only for bar-of-pie or pie-of-pie charts.
 /// </summary>
 /// <param name="MaxPercentage">The maximum percentage of the sum.</param>
 public void SplitSeriesByPercentage(double MaxPercentage)
 {
     HasSplit      = true;
     SplitType     = C.SplitValues.Percent;
     SplitPosition = MaxPercentage;
     SecondPiePoints.Clear();
 }
Example #3
0
 /// <summary>
 ///     Split the data series by position where the second plot contains the last N values. This is only for bar-of-pie or
 ///     pie-of-pie charts.
 /// </summary>
 /// <param name="LastNValues">The last N values used in the second plot.</param>
 public void SplitSeriesByPosition(int LastNValues)
 {
     HasSplit      = true;
     SplitType     = C.SplitValues.Position;
     SplitPosition = LastNValues;
     SecondPiePoints.Clear();
 }
Example #4
0
 /// <summary>
 ///     Split the data series by selecting data points for the second plot. This is only for bar-of-pie or pie-of-pie
 ///     charts.
 /// </summary>
 /// <param name="DataPointIndices">
 ///     The indices of the data points of the data series. The index is 1-based, so "1,3,4" sets
 ///     the 1st, 3rd and 4th data point in the second plot.
 /// </param>
 public void SplitSeriesByCustom(params int[] DataPointIndices)
 {
     HasSplit      = true;
     SplitType     = C.SplitValues.Custom;
     SplitPosition = 0;
     SecondPiePoints.Clear();
     foreach (var i in DataPointIndices)
     {
         if (i > 0)
         {
             SecondPiePoints.Add(i - 1);
         }
     }
     SecondPiePoints.Sort();
 }
Example #5
0
        internal void MergeOptions(SLPieChartOptions pco)
        {
            VaryColors      = pco.VaryColors;
            FirstSliceAngle = pco.FirstSliceAngle;
            HoleSize        = pco.HoleSize;
            GapWidth        = pco.GapWidth;
            HasSplit        = pco.HasSplit;
            SplitType       = pco.SplitType;
            SplitPosition   = pco.SplitPosition;

            SecondPiePoints.Clear();
            foreach (var i in pco.SecondPiePoints)
            {
                SecondPiePoints.Add(i);
            }
            SecondPiePoints.Sort();

            SecondPieSize = pco.SecondPieSize;

            SeriesLinesShapeProperties = pco.ShapeProperties.Clone();
        }