在asp.net中增加价值和百分比饼图 [英] Adding Value and percentage to pie chart in asp.net
本文介绍了在asp.net中增加价值和百分比饼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在C#中的ASP饼图
我知道如何显示馅饼百分比
或显示值数
但我怎么能显示他们两个相同的饼图中
解决方案
的foreach(数据点p在yourChart.Series [yourseries。点)
{
p.Label =百分之#\\ n#VALX
}
I have a asp pie chart in c# I know how to show percentage in the pie or to show value number
but how can I show both of them in the same pie chart
解决方案
foreach(DataPoint p in yourChart.Series["yourseries"].Points)
{
p.Label="#PERCENT\n#VALX";
}
这篇关于在asp.net中增加价值和百分比饼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文