Advice please.
I created a chart and pribindil. Y-axis indicated the binding property of the COUNTand have DATALABELSCOLUMN NAME. And the legend is not a list of the collection.
http://i50.tinypic.com/2cxi635.png
That is, shows the schedule is correct, but the description of the legend is not correct.
With respect, thanks
I created a chart and pribindil. Y-axis indicated the binding property of the COUNTand have DATALABELSCOLUMN NAME. And the legend is not a list of the collection.
http://i50.tinypic.com/2cxi635.png
chart1.DataSource = linqToSQL.TableItems.GroupBy(g => g.ColumnInt)
.Select(s =>
new
Item { count = s.Count(), name = s.First().Name })
.OrderByDescending(o => o.count).Take(10);
class
Item
{
public
int
count {
get
;
set
; }
public
string
name {
get
;
set
; }
}
With respect, thanks