我从林吉问到这个结构:
[0] = { Type = "K", Count = 1 }
[1] = { Type = "Z", Count = 8 }
我现在想把它与我的图表联系起来(不要说)。 我试图这样做:
series1.Points.DataBindXY(t. ????, t.????);
but I don t know how to get "first column" and "second column" of my var. Please help
Edit: My linq query:
var t= (from oAction in Actions
group oAction by oAction.Type.Name into g
select new { Type = g.Key, Count = g.Count() }).ToArray();