예제 #1
0
    public void LoadContent(int customerId)
    {
        DateTime startDate = GetSalesStartDate();
        DateTime endDate   = GetSalesEndDate();

        HorizontalBarChart.Title = DateTimeHelper.GetDateRangeString(startDate, endDate);
        HorizontalBarChart.SetData(SalesProvider.GetCustomerPurchasesGroupedByProduct(customerId, startDate, endDate));
        using (CustomersProvider provider = new CustomersProvider())
            Location = provider.GetCustomerLocation(customerId);
        CustomerDetailsHolder.Visible  = true;
        EmptyDataMessageHolder.Visible = false;
    }
예제 #2
0
 public void SetData(IEnumerable <ChartData> data)
 {
     DoughnutChart.SetData(data);
     HorizontalBarChart.SetData(data);
 }