コード例 #1
0
    private void PopulateDailySalesData()
    {
        List <RangeChartData> data = SalesProvider.GetDailySalesGroupedByChannel(DateSelectorControl.CurrentDate).ToList();

        ChannelsRevenue = data.GroupBy(d => d.SeriesName).Select(item =>
                                                                 new ChartData()
        {
            Value = item.Sum(x => x.Value), PointName = item.Key
        }).ToList();
        EarliestDateTime        = data.Min(x => x.Argument);
        ChartControl.DataSource = data;
        ChartControl.DataBind();
    }