请问下MsChart中做饼图,
如何显示数值和百分比?
只能弄出来百分比,我想显示 YValueMembers的值.
DataTable dt2 = MySQL.ExecuteDataTable(sql2);
chart1.DataSource = dt2;
chart1.Series[0].XValueMember = "ColName";
chart1.Series[0].YValueMembers = "JtTimes";
chart1.ChartAreas[0].Area3DStyle.Enable3D = true;
------解决方案--------------------
chart1.Series[0].Label="#VALY(p2)"
------解决方案--------------------
chart1.Series[0].Label="百分比:#VALY{p2},值:#VALY"