Exemplo n.º 1
0
 public static void MapCategoryNode(CommonElements common, CategoryNode node, float startAngle, float sweepAngle, RectangleF rectangle, float doughnutRadius, ChartGraphics graph)
 {
     if (PieChart.CreateMapAreaPath(startAngle, sweepAngle, rectangle, doughnut: true, doughnutRadius, graph, out GraphicsPath path, out float[] _))
     {
         common.HotRegionsList.AddHotRegion(graph, path, relativePath: false, node.ToolTip, node.Href, "", node, ChartElementType.Nothing);
     }
 }
Exemplo n.º 2
0
        public static void MapCategoryNode(CommonElements common, CategoryNode node, float startAngle, float sweepAngle, RectangleF rectangle, float doughnutRadius, ChartGraphics graph)
        {
            GraphicsPath path = default(GraphicsPath);

            float[] array = default(float[]);
            if (PieChart.CreateMapAreaPath(startAngle, sweepAngle, rectangle, true, doughnutRadius, graph, out path, out array))
            {
                common.HotRegionsList.AddHotRegion(graph, path, false, node.ToolTip, node.Href, "", node, ChartElementType.Nothing);
            }
        }