zhongbingshu

转自:http://blog.sina.com.cn/s/blog_51beaf0e0100yffo.html

1)显示百分比

Chart1.Series["Series1"].Label = "#PERCENT{P2}"
2)解决百分比设定后,legend的显示也为百分比的问题

首先确保你已经在设计器里将Chart设置为饼图形式

chart的属性,打开legends集合,如果还没有legend成员添加一个,添加legend成员后,在其右边 打开    cellColumns集合 ,添加一个Column1,将ColumnType 选为SeriesSymbol,再添加一个Column2,将ColumnType属性选为Text,并将下面的Text属性打开,插入新关键字,选择x值,并删去原有的#LegendText,这样Legend第二列标签在显示时就会显示对应的x轴的值了。

 

分类:

技术点:

相关文章:

  • 2022-01-29
  • 2021-12-05
  • 2021-12-28
  • 2021-08-28
  • 2021-11-30
  • 2021-04-01
  • 2021-10-26
猜你喜欢
  • 2021-12-13
  • 2022-01-05
  • 2022-01-02
  • 2021-11-27
  • 2021-06-21
  • 2022-02-01
  • 2021-11-17
相关资源
相似解决方案