I have var t from linq query with this structure:
[0] = { Type = "K", Count = 1 }
[1] = { Type = "Z", Count = 8 }
and now I want to bind it to my chart with elegance (no foreach). I try to do something like this:
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();