【发布时间】:2016-08-28 17:18:12
【问题描述】:
请看我的图表示例
现在,我想更改与系列数据的 xValues 相同的图例文本(不显示百分比值),例如:伦敦、东京、巴黎……(仍然在饼图中保留百分比值) .
你知道怎么做吗?
我使用了以下代码:
int[] yValues = { 50, 20, 10, 20 };
string[] xValues = { "London", "Paris", "Newyork", "Tokyo"};
myChart.Series["Default"].Points.DataBindXY(xValues, yValues);
myChart.Series[0].Label = "#PERCENT{P2}";
【问题讨论】:
标签: c# .net visual-studio-2010 charts