实用MSChartb饼状图百分比和Legend设置问题.docxVIP

  • 21
  • 0
  • 约 3页
  • 2017-03-28 发布于河南
  • 举报

实用MSChartb饼状图百分比和Legend设置问题.docx

实用MSChartb饼状图百分比和Legend设置问题

MSChart饼状图实用画法关注问题:如何显示百分比如何设置Legend源代码:double[]yValues={12,67,45,50,67,89,35,12,78,54};string[]xValues={1990,1991,1992,1993,1994,1995,1996,1997,1998,1999};//设置为饼型图Chart1.Series[Series1].ChartType=System.Web.UI.DataVisualization.Charting.SeriesChartType.Pie;//绑定数据Chart1.Series[Series1].Points.DataBindXY(xValues,yValues);//将份额较小的图合并为一块Seriesseries1=Chart1.Series[Series1];series1[CollectedThreshold]=6;series1[CollectedThresholdUsePercent]=true;//Setthelabelofthecollectedpiesliceseries1[CollectedLabel]=Other;//Setthelegendtextofthecollectedpiesliceseries1[CollectedLegendText]=Other;//设置label显示百分比

文档评论(0)

1亿VIP精品文档

相关文档