我正在生成圆环图,但某些情况下线标签百分比已关闭,并且在某些情况下百分号已关闭。C#中的标签饼图/ Dougnhut图表#
如何解决这个问题?
- 代码
chart.Series["Data"].ChartType = SeriesChartType.Doughnut;
chart.Series["Data"]["PieLineColor"] = "LightGray";
chart.Series["Data"]["DoughnutRadius"] = "30";
chart.Series["Data"]["PieStartAngle"] = "270";
chart.ChartAreas[0].InnerPlotPosition.Height = 90;
chart.ChartAreas[0].InnerPlotPosition.Width = 90;
chart.ChartAreas[0].Area3DStyle.Enable3D = true;
chart.ChartAreas[0].Area3DStyle.Inclination = 0;
chart.Series["Data"].Label = "#PERCENT{P0}";
chart.Series["Data"].LegendText = "#VALX";
chart.Series["Data"].Font = new Font("Arial", 16.0f, FontStyle.Bold);
托马斯试图说的是,请向我们展示创建图表的代码,以便我们确实有机会帮助您解决问题。你可以阅读关于[mcve]的内容,以更好地了解什么可以帮助他人帮助你。问题 – DrewJordan
添加代码 – Daniel