Example #1
0
 private static void RenderNodes(CommonElements common, ChartGraphics graph, CategoryNodeCollection nodes, RectangleF rectRelative, int level, double parentValue, ref float startAngle, float parentSweepAngle, float incrementXRelative, float incrementYRelative, Series series, DataPointAttributes dataPointAttributes)
 {
     if (!nodes.AreAllNodesEmpty(series))
     {
         nodes.SortByAbsoluteValue(series);
         RectangleF absoluteRectangle    = graph.GetAbsoluteRectangle(rectRelative);
         float      thresholdAngle       = (float)(360.0 / (6.2831853071795862 * (double)absoluteRectangle.Width));
         PointF     centerAbsolute       = new PointF((float)(absoluteRectangle.X + absoluteRectangle.Width / 2.0), (float)(absoluteRectangle.Y + absoluteRectangle.Height / 2.0));
         float      centerRadiusAbsolute = (float)(graph.GetAbsoluteWidth(rectRelative.Width - incrementXRelative) / 2.0);
         float      absoluteWidth        = graph.GetAbsoluteWidth((float)(rectRelative.Width / 2.0));
         foreach (CategoryNode node in nodes)
         {
             SunburstChart.RenderNode(common, graph, node, rectRelative, level, parentValue, ref startAngle, parentSweepAngle, thresholdAngle, incrementXRelative, incrementYRelative, centerAbsolute, centerRadiusAbsolute, absoluteWidth, series, dataPointAttributes);
         }
     }
 }