我正在使用带有 C# 的 asp.net 来制作饼图,代码是
ProjectsByProjectTypePieChart.Series["PTseries"].Points.AddXY(PS.Name, PS.Value);
ProjectsByProjectTypePieChart.Series["PTseries"].SetCustomProperty("PieLabelStyle", "outside");
ProjectsByProjectTypePieChart.Series["PTseries"].ChartType = SeriesChartType.Pie;// Set the Pie width
ProjectsByProjectTypePieChart.Series["PTseries"]["PointWidth"] = "0.5";// Show data points labels
ProjectsByProjectTypePieChart.Series["PTseries"]["BarLabelStyle"] = "Center";// Show chart as 3D
ProjectsByProjectTypePieChart.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;// Draw chart as 3D
ProjectsByProjectTypePieChart.Series["PTseries"]["DrawingStyle"] = "Cylinder";
这将创建一个像这样标记的饼图
但我希望它看起来像这样
我只想改变标签,实际图表的外观并不重要。