Exemplo n.º 1
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();
 }
Exemplo n.º 2
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();
        }