我正在研究asp.net图表。我想将标签上显示的值从数字替换为char。 代码:
string[] XPointMember = new string[ChartData.Rows.Count];
decimal[] YPointMember = new decimal[ChartData.Rows.Count];
for (int count = 0; count < ChartData.Rows.Count; count++)
{
//storing Values for X axis
XPointMember[count] = ChartData.Rows[count]["Time"].ToString();
//storing values for Y Axis
YPointMember[count] = Convert.ToDecimal(ChartData.Rows[count][j]);
}
_chart.Series[j - 1].Points.DataBindXY(XPointMember, YPointMember);
示例如下
我想如下
有没有办法做到这一点。