示例#1
0
 private void DrawingPerYearPeople()
 {
     Charting c = new Charting();
     c.Title =yearintab3.SelectedItem.Text.ToString().Trim()+xueqi.SelectedItem.Text + "故障处理图";
     c.XTitle = "姓名";
     c.YTitle = "处理故障数";
     c.PicHight = 370;
     c.PicWidth = 770;
     c.SeriesName = "故障总数";
     c.PhaysicalImagePath = "pictemp";
     c.FileName = "peopledofault";
     c.Type = SeriesType.Column;
     c.Use3D = false;
     c.DataSource =GetDatasourcesEveryPeople();
     c.CreateStatisticPic(this.Chart3);
        // Chart3.Type = ChartType.Combo;
     //Chart1.Series.DefaultElement.ShowValue = true;
 }
示例#2
0
 private void DrawingPerYearMenth()
 {
     Charting c = new Charting();
     c.Title = yearintabone.SelectedItem.Text.ToString().Trim() + "报障方式统计图";
     c.XTitle = "月份";
     c.YTitle = "故障数";
     c.PicHight = 370;
     c.PicWidth = 700;
     c.SeriesName = "故障总数";
     c.PhaysicalImagePath = "pictemp";
     c.FileName = "dada";
     c.Type =SeriesType.Cylinder;
     c.Use3D = true;
     c.DataSource = GetDatasources();
     c.CreateStatisticPic(this.Chart1);
     Chart1.Type = ChartType.Pies;
     //Chart1.Series.DefaultElement.ShowValue = true;
 }
示例#3
0
 private void DrawingChartEveryPeopleperYear()
 {
     Charting c = new Charting();
     c.Title = yearuntab4.SelectedItem.Text.ToString().Trim() + "个人处理故障汇总";
     c.XTitle = "月份";
     c.YTitle = "故障数";
     c.PicHight = 370;
     c.PicWidth = 700;
     c.SeriesName = "故障总数";
     c.PhaysicalImagePath = "pictembnps";
     c.FileName = "dassdass";
     c.Type = SeriesType.Column;
     c.Use3D = false;
     c.DataSource =GetDatasourcesbyerverpeopleperyear();
     c.CreateStatisticPic(this.Chart4);
 }
示例#4
0
 private void DrawingPerYearDong()
 {
     Charting c = new Charting();
     c.Title =yearintabtwo.SelectedItem.Text.ToString().Trim() + "故障分布图";
     c.XTitle = "位置";
     c.YTitle = "故障数";
     c.PicHight = 370;
     c.PicWidth = 770;
     c.SeriesName = "故障总数";
     c.PhaysicalImagePath = "pictemp";
     c.FileName = "dongpic";
     c.Type = SeriesType.Column;
     c.Use3D = false;
     c.DataSource =GetDatasourcesEveryDong();
     c.CreateStatisticPic(this.Chart2);
     Chart2.Type = ChartType.Combo;
     //Chart1.Series.DefaultElement.ShowValue = true;
 }
    private void DrawingChart()
    {
        Charting c = new Charting();
        c.Title = CheckFaultChartByYear.SelectedItem.Text.ToString().Trim() + "个人处理故障汇总";
        c.XTitle = "月份";
        c.YTitle = "故障数";
        c.PicHight = 370;
        c.PicWidth = 700;
        c.SeriesName = "故障总数";
        c.PhaysicalImagePath = "pictemp";
        c.FileName = "dada";
        c.Type = SeriesType.Column;
        c.Use3D =false;
        c.DataSource = GetDatasources();
        c.CreateStatisticPic(this.Chart1);
        //Chart1.Type = ChartType.Pies;

        //Chart1.Title = this._title;
        //Chart1.XAxis.Label.Text ="月份";
        //Chart1.YAxis.Label.Text ="处理的故障数";
        //Chart1.TempDirectory = "pictemp";
        //Chart1.Width =600;
        //Chart1.Height = 500;
        //Chart1.Type = Chart1Type.Combo;
        //Chart1.Series.Type = SeriesType.Cylinder;
        //Chart1.Series.Name ="asda";
        //Chart1.Series.Data = sfm.GetCountFaultByYearByPeopel(Convert.ToInt32(CheckFaultChartByYear.SelectedValue.ToString()), Session["username"].ToString());
        //Chart1.SeriesCollection.Add();
        //Chart1.DefaultSeries.DefaultElement.ShowValue = true;
        //Chart1.ShadingEffect = true;
        //Chart1.Use3D = false;
        //Chart1.Series.DefaultElement.ShowValue = true;
    }