代码拉取完成,页面将自动刷新
同步操作将从 Joey Zhao/OpenChart 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
参见:http://www.cnblogs.com/zzy0471/archive/2011/01/23/1942316.html
this.chart1.BackColor = Color.Black;
this.chart1.ChartArea.ChartType = Enums.ChartType.Line;
this.chart1.ChartArea.Data = this.dsTest1.Tables[0];
this.chart1.ChartArea.XValueMember = "F_X";
StringInfo chartTitle = new StringInfo();
chartTitle.Value = "LineChart";
chartTitle.Color = Color.DarkBlue;
chartTitle.Size = 15;
this.chart1.ChartArea.ChartTitle = chartTitle;
this.chart1.ChartArea.AxisLineColor = Color.DarkSeaGreen;
this.chart1.ChartArea.AxisLineWidth = 2;
PartingLine line = new PartingLine();
line.YValue = 50;
line.LineColor = Color.GreenYellow;
this.chart1.ChartArea.PartingLines.Add(line);
StringInfo axisXLable = new StringInfo();
axisXLable.Size = 12;
axisXLable.Color = Color.Silver;
axisXLable.Value = "时间";
this.chart1.ChartArea.AxisX.Lable = axisXLable;
this.chart1.ChartArea.AxisX.Interval = 1;
this.chart1.ChartArea.AxisX.IntervalType = Enums.InervalType.Hours;
this.chart1.ChartArea.AxisX.TimeFormat = "MM-dd HH:mm";
this.chart1.ChartArea.AxisX.Grid.LineColor = Color.RosyBrown;
this.chart1.ChartArea.AxisX.Grid.LineStyle = Enums.LineStyle.DashDot;
this.chart1.ChartArea.AxisX.ShowGrid = true;
StringInfo axisYLable = new StringInfo();
axisYLable.Size = 12;
axisYLable.Color = Color.Silver;
axisYLable.Value = "数据";
this.chart1.ChartArea.AxisY1.Lable = axisYLable;
this.chart1.ChartArea.AxisY1.Interval = 10;
this.chart1.ChartArea.AxisY1.IntervalType = Enums.InervalType.Number;
this.chart1.ChartArea.AxisY1.Grid.LineColor = Color.SaddleBrown;
this.chart1.ChartArea.AxisY1.Grid.LineStyle = Enums.LineStyle.DashDot;
this.chart1.ChartArea.AxisY1.ShowGrid = true;
Series series1 = new Series();
series1.Name = "SeriesOne";
series1.Color = Color.Red;
series1.Width = 1;
series1.YValueMember = "F_Y1";
this.chart1.ChartArea.Series.Add(series1);
Series series2 = new Series();
series2.Name = "SeriesTwo";
series2.Color = Color.RoyalBlue;
series2.Width = 1;
series2.YValueMember = "F_Y2";
this.chart1.ChartArea.Series.Add(series2);
Series series3 = new Series();
series3.Name = "SeriesThree";
series3.Color = Color.SeaShell;
series3.Width = 1;
series3.YValueMember = "F_Y3";
this.chart1.ChartArea.Series.Add(series3);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。