您当前的位置: 首页 >  ar

[MSCHART]柱状图

发布时间:2012-03-26 10:18:23 ,浏览量:0

后台代码:

private void DataBind() 
    {
        ProductByYear py = new ProductByYear();
        for (int i = 0; i < RadioButtonList1.Items.Count; i++)
        {
            if (RadioButtonList1.Items[i].Selected)
            {

                py.Company = RadioButtonList1.Items[i].Value.Trim();
            }
        }
        //py.Company = "ZE";
        ProductByYearManager pymgr = new ProductByYearManager();
        this.Store1.DataSource = pymgr.ProductByYearList(py);
        this.Store1.DataBind();

        this.ChartYear.Width = 600;
        this.ChartYear.Height = 400;
        this.ChartYear.DataSource = pymgr.ProductByYearChart(py);
        this.ChartYear .DataBind ();
        this.ChartYear.Series["last year"].ChartType = SeriesChartType.Column;
        this.ChartYear.Series["year"].ChartType = SeriesChartType.Column;
        t
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    109273博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0799s