Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在标签中显示百分比和名称,例如。“赢家 32%”和“输家 68%”。我目前只有一个百分比显示使用以下代码:
Chart1.Series[0].Label = "#PERCENT{P0}";
解决方案很简单:
Chart1.Series[0].Label = "#VALX #PERCENT{P0}";
'#VALX' 显示 x 值,因此结合 '#PERCENT{P0}' 会生成一个类似“winners 32%”的标签,其中“winners”是我的 x 值。