关于pie chart 的 LegendText显示的问题
要做一个pie chart,在图里显示出百分比,legendtext处显示GoodsID,但是现在的状况是,图里的百分比正常显示出来了,但是legendtext显示的全是0,该怎么办?求指导,以下是我的代码:SqlConnection con1 = cont.conn();
string sql2 = "SELECT GoodsID,profit FROM GoodsSellVolumnbyMonth WHERE DateMonth like '%" + DateMonth + "%' GROUP BY GoodsID,Profit ORDER BY Profit";
SqlCommand com2 = new SqlCommand(sql2, con1);
con1.Open();
SqlDataReader dr2 = com2.ExecuteReader();
chart1.Series[0].Points.DataBindXY(dr2, "GoodsID", dr2,"Profit");
this.chart1.Series[0].Label = "#PERCENT";// "#PERCENT";
this.chart1.Series[0].LegendText = "#VALX"; --------------------编程问答-------------------- 除 --------------------编程问答-------------------- 除 --------------------编程问答--------------------
的确很强大啊,能不能共享下你们改好的啊!有酬! --------------------编程问答-------------------- 除
补充:.NET技术 , 图表区