devexpress chart 弧度曲线图

后台代码:

    //绑定数据

    WebChartControl8.DataSource = bll.GetTimeSheetByWorks();
            WebChartControl8.DataBind();

           WebChartControl8.Series.Clear();
            Series series2 = new Series("弧度曲线测试", ViewType.Spline);
            for (int i = 0; i < DS.Tables[0].Rows.Count; i++)
            {
                string name = DS.Tables[0].Rows[i]["jobworks"].ToString();
                double value = Convert.ToDouble(DS.Tables[0].Rows[i]["countjob"].ToString());
                series2.Points.Add(new SeriesPoint(name, value));
            }
            WebChartControl8.Series.Add(series2);
            //定义chart标题
            ChartTitle CT1 = new ChartTitle();
            CT1.Text = "弧度曲线测试";
            WebChartControl8.Titles.Add(CT1);

posted @ 2011-11-02 16:36  唐江兰  阅读(813)  评论(0编辑  收藏  举报