Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        RadHtmlChartGroupDataSource.GroupDataSource(RadHtmlChart1, GetRawDataSource1(), "Year", "AreaSeries", "Sales", "Quarter");
        RadHtmlChartGroupDataSource.GroupDataSource(RadHtmlChart4, GetRawDataSourcePurchase(), "Year", "LineSeries", "Sales", "Quarter");
        RadHtmlChartGroupDataSource.GroupDataSource(RadHtmlChart2, GetRawDataSourceRevenue(), "Category", "ColumnSeries", "Sales", "Quarter");

        ServiceReference2.Service1Client sc = new ServiceReference2.Service1Client();
        var a = sc.GetSaleData();

        RadHtmlChart3.DataSource = a;
        RadHtmlChart3.DataBind();
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //ServiceReference1 sr = new ServiceReference1();

        ServiceReference2.Service1Client sc = new ServiceReference2.Service1Client();
        var a = sc.GetSaleData();

        RadHtmlChart1.DataSource = a;
        RadHtmlChart1.DataBind();

        RadHtmlChartGroupDataSource.GroupDataSource(RadHtmlChart2, GetRawDataSource(), "Year", "BarSeries", "Sales", "Quarter");
    }