文章内容:如标题 webchart控件的饼图 如何显示百分比。既在块上有一条线,后跟百分之几(提供链接的就不用了,谢谢) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.51aspx.com/CodeImg/211-1.jpg你不想要连接也就是要源码咯。这里有源码http://www.51aspx.com/CV/WebChartPie/ for ( int i = 0 ; i < dv.Count; i ++ ){C1.Win.C1Chart.Label lbl = C1WebChart1.ChartLabels.LabelsCollection.AddNewLabel();lbl.Text = string .Format( " {0}% " , float .Parse(dv[i][ " value " ].ToString()));lbl.Compass = LabelCompassEnum.Radial;lbl.Offset = 20 ;lbl.Connected = true ;lbl.Visible = true ;lbl.AttachMethod = AttachMethodEnum.DataIndex;AttachMethodData am = lbl.AttachMethodData;am.GroupIndex = 0 ;am.SeriesIndex = i;am.PointIndex = 0 ;} C1是什么C1WebChart1是什么 dotnetCHARTING.DLL用的上面控件,可以实现圆饼每个分区显示百分比. //for (int i = 0; i < rcs.Count; i++) //{ // Series se = new Series(); // se.Name = rcs[i]["l_lostcause"]; // Element ee = new Element(); // ee.Name = rcs[i]["l_lostcause"]; // ee.YValue = Convert.ToDouble( rcs[i]["Num"]); // se.Elements.Add(ee); // pieC.SeriesCollection.Add(se); // Count += Convert.ToInt32(rcs[i]["Num"]); //} //设置是否显示百分比 //pieC.DefaultSeries.DefaultElement.ShowValue = true; //pieC.Title = "总数:" + Count.ToString(); rgb转argb的问题,要求效率。 算法的作用。。。 winform下自定义样式显示数据库内容,类似web中的repeater winform如何实现文件传输 xml 小问题 在线等! 数组中内容按重复次数排序,并去除重复数 【奇怪】怀疑是编码的问题~ 无法安装.net dataset 中如何查询数据 socket传输数据流的问题 C#生成多个指定名称的变量????? 自做类库中资源释放问题
你不想要连接也就是要源码咯。这里有源码
http://www.51aspx.com/CV/WebChartPie/
for ( int i = 0 ; i < dv.Count; i ++ )
{
C1.Win.C1Chart.Label lbl = C1WebChart1.ChartLabels.LabelsCollection.AddNewLabel();
lbl.Text = string .Format( " {0}% " , float .Parse(dv[i][ " value " ].ToString()));
lbl.Compass = LabelCompassEnum.Radial;
lbl.Offset = 20 ;
lbl.Connected = true ;
lbl.Visible = true ;
lbl.AttachMethod = AttachMethodEnum.DataIndex;
AttachMethodData am = lbl.AttachMethodData;
am.GroupIndex = 0 ;
am.SeriesIndex = i;
am.PointIndex = 0 ;
} C1是什么
C1WebChart1是什么
//for (int i = 0; i < rcs.Count; i++)
//{
// Series se = new Series();
// se.Name = rcs[i]["l_lostcause"];
// Element ee = new Element();
// ee.Name = rcs[i]["l_lostcause"];
// ee.YValue = Convert.ToDouble( rcs[i]["Num"]);
// se.Elements.Add(ee);
// pieC.SeriesCollection.Add(se); // Count += Convert.ToInt32(rcs[i]["Num"]);
//} //设置是否显示百分比
//pieC.DefaultSeries.DefaultElement.ShowValue = true;
//pieC.Title = "总数:" + Count.ToString();