private void xrChart1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { DataTable dt = new DataTable(); dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetTravelerStatsSrv(this.Parameters["ServerName"].Value.ToString(), this.Parameters["TravelerName"].Value.ToString()); xrChart1.SeriesDataMember = "Interval"; xrChart1.SeriesTemplate.ArgumentDataMember = "DateUpdated"; xrChart1.SeriesTemplate.ValueDataMembers.AddRange(new string[] { "OpenTimes" }); xrChart1.SeriesTemplate.View = new SideBySideBarSeriesView(); xrChart1.SeriesTemplate.ChangeView(ViewType.Line); LineSeriesView view = (LineSeriesView)xrChart1.SeriesTemplate.View; view.LineMarkerOptions.Visible = false; xrChart1.Legend.Visible = true; XYDiagram seriesXY = (XYDiagram)xrChart1.Diagram; seriesXY.AxisX.Title.Text = "Time"; seriesXY.AxisX.Title.Visible = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowRotate = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowHide = false; //4/18/2014 NS commented out for VSPLUS-312 //seriesXY.AxisX.DateTimeGridAlignment = DateTimeMeasurementUnit.Minute; seriesXY.AxisX.DateTimeMeasureUnit = DateTimeMeasurementUnit.Minute; seriesXY.AxisX.DateTimeOptions.Format = DateTimeFormat.ShortTime; seriesXY.AxisY.Range.AlwaysShowZeroLevel = false; seriesXY.AxisY.Title.Text = "Open Times"; seriesXY.AxisY.Title.Visible = true; if (dt.Rows.Count > 0) { xrChart1.DataSource = dt; } }
private Series CreateLineSeries(StrategyDataItemInfo info) { Series s = new Series(); s.Name = info.Name; s.ArgumentDataMember = GetArgumentDataMember(info); s.ArgumentScaleType = GetArgumentScaleType(info); s.ValueDataMembers.AddRange(info.FieldName); s.ValueScaleType = ScaleType.Numerical; s.ShowInLegend = true; LineSeriesView view = info.ChartType == ChartType.StepLine? new StepLineSeriesView(): new LineSeriesView(); view.LineStyle.LineJoin = System.Drawing.Drawing2D.LineJoin.Bevel; view.Color = info.Color; view.LineStyle.Thickness = (int)(info.GraphWidth * DpiProvider.Default.DpiScaleFactor); view.AggregateFunction = SeriesAggregateFunction.Average; s.View = view; object dataSource = GetDataSource(info); IResizeableArray array = dataSource as IResizeableArray; if (array == null || array.Count < BigDataCount) { s.DataSource = dataSource; } else { s.Points.AddRange(CreateSeriesPoints(info)); } return(s); }
private void cmbChooseChart_SelectedIndexChanged(object sender, EventArgs e) { switch (cmbChooseChart.SelectedIndex) { case 0: { var shape = new SideBySideBarSeriesView(); ccTaskStatisticalFigure.Series[0].View = shape; } break; case 1: { var shape = new PieSeriesView(); var label = ccTaskStatisticalFigure.Series[0].Label; var pointOptions = label.PointOptions; pointOptions.PointView = PointView.ArgumentAndValues; pointOptions.ValueNumericOptions.Format = NumericFormat.Percent; ccTaskStatisticalFigure.Series[0].View = shape; } break; case 2: { var shape = new LineSeriesView(); ccTaskStatisticalFigure.Series[0].View = shape; } break; case 3: { var shape = new AreaSeriesView(); shape.Transparency = (byte)135; ccTaskStatisticalFigure.Series[0].View = shape; } break; } }
/// <summary> /// 查询EL不良分布之后绘制分析图形。 /// </summary> /// <param name="dtSource">源数据表。</param> private void DrawChart(DataTable dtSource, int queryType) { XYDiagram diagram = this.chartELDefectYield.Diagram as XYDiagram; if (diagram == null) { return; } diagram.AxisX.Label.Angle = -45; this.chartELDefectYield.Series.Clear(); if (dtSource.Rows.Count <= 0 || queryType == 0) { this.chartELDefectYield.Series.Add(new Series()); return; } foreach (DataRow dr in dtSource.Rows) { string promodelName = Convert.ToString(dr["ROOM_NAME"]); if (promodelName == "ALL") { continue; } string colValue = Convert.ToString(dr["COL_VALUE"]); string colName = dic[colValue]; string sname = string.Format("{0}{1}", dr["ROOM_NAME"], colName); Series s = null; if (colValue.EndsWith("_RATE")) { s = new Series(sname, ViewType.Line); PointSeriesLabel label = s.Label as PointSeriesLabel; LineSeriesView sv = s.View as LineSeriesView; sv.LineMarkerOptions.Kind = MarkerKind.Diamond; sv.AxisY = diagram.SecondaryAxesY[0]; s.PointOptions.ValueNumericOptions.Format = NumericFormat.Percent; } else { s = new Series(sname, ViewType.Bar); } for (int i = 3; i < dtSource.Columns.Count - 1; i++) { string argument = dtSource.Columns[i].ColumnName; SeriesPoint p = null; if (string.IsNullOrEmpty(Convert.ToString(dr[i]))) { p = new SeriesPoint(argument); p.IsEmpty = true; } else { double val = Convert.ToDouble(dr[i]); p = new SeriesPoint(argument, val); } s.Points.Add(p); } chartELDefectYield.Series.Add(s); } }
public void SetLineSeriesStyle(DashStyle LineStype, int Width, Color LineColor) { if (TargetSeries.View is LineSeriesView) { LineSeriesView view = TargetSeries.View as LineSeriesView; view.LineStyle.DashStyle = LineStype; view.Color = LineColor; view.LineStyle.Thickness = Width; } }
private void Monitoring_Load(object sender, EventArgs e) { timer3.Start(); timer2.Start(); timer1.Start(); dataAcquisitionThread = new Thread(new ThreadStart(AcquireData)); dataAcquisitionThread.Start(); //차트 제목 //chartctrl2.Titles.Add(new ChartTitle { Text = "Monitoring" }); Series series = new Series(); series.ChangeView(ViewType.Line); ((LineSeriesView)series.View).LineStyle.Thickness = 5; series.View.Color = Color.Green; series.DataSource = viewportData; series.DataSourceSorted = true; series.ArgumentDataMember = "Argument"; series.ValueDataMembers.AddRange("Value"); chartctrl2.Series.Add(series); LineSeriesView seriesView = (LineSeriesView)series.View; seriesView.LastPoint.LabelDisplayMode = SidePointDisplayMode.SeriesPoint; seriesView.LastPoint.Label.TextPattern = "{V:f1}"; XYDiagram diagram = (XYDiagram)chartctrl2.Diagram; diagram.AxisY.WholeRange.Auto = false; diagram.AxisY.WholeRange.MinValue = -GB; diagram.AxisY.WholeRange.MaxValue = GB; diagram.AxisX.DateTimeScaleOptions.GridSpacing = 1; //diagram.AxisX.VisualRange.SetMinMaxValues((DateTime)diagram.AxisX.WholeRange.MaxValue - new TimeSpan(0, 0, 10), ((DateTime)diagram.AxisX.WholeRange.MaxValue).AddSeconds(1)); //diagram.AxisX.WholeRange.SetMinMaxValues(DateTime.Now.AddSeconds(-1), DateTime.Now); diagram.AxisX.Label.TextPattern = "{A : hh:mm:ss}"; diagram.AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Continuous; diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false; diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false; //차트 흔들림 //diagram.AxisX.VisualRange.SideMarginsValue = 0; diagram.DependentAxesYRange = DefaultBoolean.True; diagram.AxisY.WholeRange.AlwaysShowZeroLevel = true; diagram.EnableAxisXScrolling = false; }
private Series CreateLineSeries(string seriesName, NumericFormat format) { LineSeriesView lineView = new LineSeriesView(); Series lineSeries = new Series(); lineSeries.Name = seriesName; lineSeries.ShowInLegend = true; lineSeries.View = lineView; lineSeries.Label.PointOptions.ValueNumericOptions.Format = format; return(lineSeries); }
public void SetLineSeriesMarkerStyle(MarkerKind markerKind, int markerSize, Color markerColor) { if (TargetSeries.View is LineSeriesView) { LineSeriesView view = TargetSeries.View as LineSeriesView; view.MarkerVisibility = DevExpress.Utils.DefaultBoolean.True; view.LineMarkerOptions.Kind = markerKind; view.LineMarkerOptions.Size = markerSize; view.LineMarkerOptions.Color = markerColor; } }
private void xrChart1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { xrChart1.Series.Clear(); DataTable dt = new DataTable(); DateTime dtime = new DateTime(); bool isSummary = false; dtime = DateTime.Now; dtime = dtime.AddDays(-3); isSummary = Convert.ToDateTime(this.Parameters["StartDate"].Value.ToString()) < dtime; dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetTravelerStatsDelta(this.Parameters["Interval"].Value.ToString(), this.Parameters["ServerName"].Value.ToString(), this.Parameters["StartDate"].Value.ToString(), this.Parameters["EndDate"].Value.ToString(), isSummary); xrChart1.SeriesDataMember = "MailServerName"; xrChart1.SeriesTemplate.ArgumentDataMember = "DateUpdated"; xrChart1.SeriesTemplate.ValueDataMembers.AddRange(new string[] { "Delta" }); xrChart1.SeriesTemplate.View = new SideBySideBarSeriesView(); xrChart1.SeriesTemplate.ChangeView(ViewType.Line); LineSeriesView view = (LineSeriesView)xrChart1.SeriesTemplate.View; view.LineMarkerOptions.Visible = true; view.LineMarkerOptions.Size = 8; xrChart1.Legend.Visible = true; XYDiagram seriesXY = (XYDiagram)xrChart1.Diagram; seriesXY.AxisX.Title.Visible = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowRotate = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowHide = true; //4/18/2014 NS commented out for VSPLUS-312 //seriesXY.AxisX.DateTimeGridAlignment = DateTimeMeasurementUnit.Minute; //4/29/2014 NS modified for VSPLUS-557 if (isSummary) { seriesXY.AxisX.Title.Text = "Date"; seriesXY.AxisY.Title.Text = "Open Times Delta (Average)"; //seriesXY.AxisX.DateTimeMeasureUnit = DateTimeMeasurementUnit.Day; seriesXY.AxisX.DateTimeOptions.Format = DateTimeFormat.ShortDate; seriesXY.AxisY.Range.AlwaysShowZeroLevel = false; } else { seriesXY.AxisX.Title.Text = "Time"; seriesXY.AxisY.Title.Text = "Open Times Delta"; seriesXY.AxisX.DateTimeMeasureUnit = DateTimeMeasurementUnit.Hour; seriesXY.AxisX.DateTimeOptions.Format = DateTimeFormat.General; seriesXY.AxisY.Range.AlwaysShowZeroLevel = false; } seriesXY.AxisY.Title.Visible = true; if (dt.Rows.Count > 0) { xrChart1.DataSource = dt; } }
private void xrChart1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { DataTable dt = new DataTable(); dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetTravelerHTTPSessions(this.Parameters["TravelerName"].Value.ToString()); if (dt.Rows.Count > 0) { xrChart1.DataSource = dt; } Series series = new Series("HttpSessions", ViewType.Line); series.Visible = true; series.ArgumentDataMember = dt.Columns["Date"].ToString(); ValueDataMemberCollection seriesValueDataMembers = (ValueDataMemberCollection)series.ValueDataMembers; seriesValueDataMembers.AddRange(dt.Columns["StatValue"].ToString()); series.LabelsVisibility = DevExpress.Utils.DefaultBoolean.False; xrChart1.Series.Add(series); xrChart1.SeriesTemplate.View = new SideBySideBarSeriesView(); xrChart1.SeriesTemplate.ChangeView(ViewType.Line); LineSeriesView view = (LineSeriesView)xrChart1.SeriesTemplate.View; view.LineMarkerOptions.Visible = true; view.LineMarkerOptions.Size = 8; xrChart1.Legend.Visible = false; XYDiagram seriesXY = (XYDiagram)xrChart1.Diagram; seriesXY.AxisX.Title.Text = "Time"; seriesXY.AxisX.Title.Visible = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowRotate = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowHide = false; //4/18/2014 NS commented out for VSPLUS-312 //seriesXY.AxisX.DateTimeGridAlignment = DateTimeMeasurementUnit.Minute; seriesXY.AxisX.DateTimeMeasureUnit = DateTimeMeasurementUnit.Minute; seriesXY.AxisX.DateTimeOptions.Format = DateTimeFormat.ShortTime; seriesXY.AxisY.Range.AlwaysShowZeroLevel = false; seriesXY.AxisY.Title.Text = "Sessions"; seriesXY.AxisY.Title.Visible = true; double min = Convert.ToDouble(((XYDiagram)xrChart1.Diagram).AxisY.Range.MinValue); double max = Convert.ToDouble(((XYDiagram)xrChart1.Diagram).AxisY.Range.MaxValue); int gs = (int)((max - min) / 5); if (gs == 0) { gs = 1; seriesXY.AxisY.GridSpacingAuto = false; seriesXY.AxisY.GridSpacing = gs; } }
public Monitoring() { InitializeComponent(); this.seriesArray[0] = new Series("섭씨온도('C)", ViewType.Line); this.seriesArray[1] = new Series("화씨온도('F)", ViewType.Line); this.seriesArray[2] = new Series("습도(%)", ViewType.Line); this.chartCtrl1.Series.Add(this.seriesArray[1]); this.chartCtrl1.Series.Add(this.seriesArray[0]); this.chartCtrl1.Series.Add(this.seriesArray[2]); this.chartCtrl1.CrosshairEnabled = DefaultBoolean.False; XYDiagram diagram = (XYDiagram)this.chartCtrl1.Diagram; diagram.AxisY.WholeRange.Auto = false; diagram.AxisY.WholeRange.MinValue = 0; diagram.AxisY.WholeRange.MaxValue = 100; //diagram.AxisX.WholeRange.SideMarginsValue = 0; diagram.AxisX.WholeRange.EndSideMargin = 0.4; ConstantLine constantLine = new ConstantLine(); constantLine.Color = Color.LightYellow; constantLine.AxisValue = 0; constantLine.ShowInLegend = false; diagram.AxisY.ConstantLines.Add(constantLine); diagram.EnableAxisXScrolling = false; diagram.EnableAxisXZooming = false; LineSeriesView seriesView0 = (LineSeriesView)seriesArray[0].View; LineSeriesView seriesView1 = (LineSeriesView)seriesArray[1].View; LineSeriesView seriesView2 = (LineSeriesView)seriesArray[2].View; seriesView0.LastPoint.LabelDisplayMode = SidePointDisplayMode.SeriesPoint; seriesView0.LastPoint.Label.TextPattern = "{V:f2}"; seriesView1.LastPoint.LabelDisplayMode = SidePointDisplayMode.SeriesPoint; seriesView1.LastPoint.Label.TextPattern = "{V:f2}"; seriesView2.LastPoint.LabelDisplayMode = SidePointDisplayMode.SeriesPoint; seriesView2.LastPoint.Label.TextPattern = "{V:f2}"; #region 이벤트를 설정한다. Load += Monitoring_Load; #endregion }
public DataTable SetGraphForMailFileOpensCumulative(string servername, string mailservername, string interval) { mailFileOpensCumulativeWebChart.Series.Clear(); DataTable dt = VSWebBL.DashboardBL.LotusTravelerHealthBLL.Ins.SetGraphForMailFileOpensCumulative(servername, mailservername, interval); mailFileOpensCumulativeWebChart.SeriesDataMember = "Interval"; mailFileOpensCumulativeWebChart.SeriesTemplate.ArgumentDataMember = "DateUpdated"; mailFileOpensCumulativeWebChart.SeriesTemplate.ValueDataMembers.AddRange(new string[] { "OpenTimes" }); mailFileOpensCumulativeWebChart.SeriesTemplate.View = new SideBySideBarSeriesView(); mailFileOpensCumulativeWebChart.SeriesTemplate.ChangeView(ViewType.Line); LineSeriesView view = (LineSeriesView)mailFileOpensCumulativeWebChart.SeriesTemplate.View; view.LineMarkerOptions.Visible = true; view.LineMarkerOptions.Size = 8; mailFileOpensCumulativeWebChart.Legend.Visible = true; XYDiagram seriesXY = (XYDiagram)mailFileOpensCumulativeWebChart.Diagram; seriesXY.AxisX.Title.Text = "Time of Day"; seriesXY.AxisX.Title.Visible = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowRotate = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowHide = false; seriesXY.AxisX.DateTimeGridAlignment = DateTimeMeasurementUnit.Minute; seriesXY.AxisX.DateTimeMeasureUnit = DateTimeMeasurementUnit.Minute; seriesXY.AxisX.DateTimeOptions.Format = DateTimeFormat.ShortTime; seriesXY.AxisY.Title.Text = "Open Times"; seriesXY.AxisY.Title.Visible = true; AxisBase axisy = ((XYDiagram)mailFileOpensCumulativeWebChart.Diagram).AxisY; axisy.Range.AlwaysShowZeroLevel = false; mailFileOpensCumulativeWebChart.DataSource = dt; mailFileOpensCumulativeWebChart.DataBind(); //seriesXY.AxisX.GridSpacingAuto = false; double min = Convert.ToDouble(((XYDiagram)mailFileOpensCumulativeWebChart.Diagram).AxisY.Range.MinValue); double max = Convert.ToDouble(((XYDiagram)mailFileOpensCumulativeWebChart.Diagram).AxisY.Range.MaxValue); int gs = (int)((max - min) / 5); if (gs == 0) { gs = 1; seriesXY.AxisY.GridSpacingAuto = false; seriesXY.AxisY.GridSpacing = gs; } return(dt); }
private void xrChart1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { xrChart1.Series.Clear(); DataTable dt = new DataTable(); dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetTravelerDeviceSyncs(this.Parameters["ServerNameSQL"].Value.ToString(), this.Parameters["StartDate"].Value.ToString(), this.Parameters["EndDate"].Value.ToString()); if (dt.Rows.Count > 0) { xrChart1.DataSource = dt; } xrChart1.SeriesDataMember = "ServerName"; xrChart1.SeriesTemplate.ArgumentDataMember = "Date"; xrChart1.SeriesTemplate.ValueDataMembers.AddRange(new string[] { "StatValue" }); LineSeriesView view = (LineSeriesView)xrChart1.SeriesTemplate.View; view.LineMarkerOptions.Visible = true; view.LineMarkerOptions.Size = 8; xrChart1.Legend.Visible = true; xrChart1.BackColor = System.Drawing.Color.Transparent; XYDiagram seriesXY = (XYDiagram)xrChart1.Diagram; seriesXY.AxisX.Title.Visible = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowRotate = true; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowHide = false; seriesXY.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false; seriesXY.AxisX.Title.Text = "Date"; seriesXY.AxisY.Title.Text = "Device Sync Volume"; seriesXY.AxisX.DateTimeMeasureUnit = DateTimeMeasurementUnit.Day; seriesXY.AxisX.DateTimeOptions.Format = DateTimeFormat.ShortDate; seriesXY.AxisY.Range.AlwaysShowZeroLevel = false; seriesXY.AxisY.Title.Visible = true; //9/2/2015 NS commented out /* * double min = Convert.ToDouble(((XYDiagram)xrChart1.Diagram).AxisY.Range.MinValue); * double max = Convert.ToDouble(((XYDiagram)xrChart1.Diagram).AxisY.Range.MaxValue); * * int gs = (int)((max - min) / 5); * * if (gs == 0) * { * gs = 1; * seriesXY.AxisY.GridSpacingAuto = false; * seriesXY.AxisY.GridSpacing = gs; * } */ }
private void checkEdit1_CheckedChanged(object sender, EventArgs e) { List <string> seriesNameList = new List <string>(); for (int i = 0; i < chart.Series.Count; i++) { seriesNameList.Add(chart.Series[i].Name); } if (checkEdit1.Checked) { if (seriesNameList.Contains("小时最大值")) { LineSeriesView lineview1 = (LineSeriesView)chart.Series["小时最大值"].View; lineview1.MarkerVisibility = DefaultBoolean.True; lineview1.LineMarkerOptions.Size = 10; } if (seriesNameList.Contains("小时最小值")) { LineSeriesView lineview1 = (LineSeriesView)chart.Series["小时最小值"].View; lineview1.MarkerVisibility = DefaultBoolean.True; lineview1.LineMarkerOptions.Size = 10; } if (seriesNameList.Contains("小时平均值")) { LineSeriesView lineview1 = (LineSeriesView)chart.Series["小时平均值"].View; lineview1.MarkerVisibility = DefaultBoolean.True; lineview1.LineMarkerOptions.Size = 10; } } else { if (seriesNameList.Contains("小时最大值")) { LineSeriesView lineview1 = (LineSeriesView)chart.Series["小时最大值"].View; lineview1.MarkerVisibility = DefaultBoolean.False; } if (seriesNameList.Contains("小时最小值")) { LineSeriesView lineview1 = (LineSeriesView)chart.Series["小时最小值"].View; lineview1.MarkerVisibility = DefaultBoolean.False; } if (seriesNameList.Contains("小时平均值")) { LineSeriesView lineview1 = (LineSeriesView)chart.Series["小时平均值"].View; lineview1.MarkerVisibility = DefaultBoolean.False; } } }
private void chartControl2_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { XYDiagram xYDiagram = (XYDiagram)chartControl2.Diagram; double LastMouseCentreX = xYDiagram.PointToDiagram(e.Location).NumericalArgument; double LastMouseCentreY = xYDiagram.PointToDiagram(e.Location).NumericalValue; AddPointToChart(chartControl2, LastMouseCentreX, LastMouseCentreY, 0); LineSeriesView line = new LineSeriesView(); seriesPointsInChart2 = chartControl2.Series[0].Points; SteeringExist = true; } }
private void BindingTree_Detail_Chart(DataTable dt) { try { List <string> nodeTextList = new List <string>(); foreach (TreeListNode node in treeList.Nodes) { //nodeTextList.Add(node.GetDisplayText(1)); foreach (TreeListNode node1 in node.Nodes) { if (node1.Checked) { nodeTextList.Add(node1.GetDisplayText(1)); } else { DataRow[] drr = dt.Select("LINE_NM ='" + node1.GetDisplayText(1) + "'"); for (int i = 0; i < drr.Length; i++) { dt.Rows.Remove(drr[i]); } dt.AcceptChanges(); } } } chartControl2.DataSource = dt; chartControl2.SeriesDataMember = "LINE_NM"; chartControl2.SeriesTemplate.ArgumentDataMember = "HMS"; chartControl2.SeriesTemplate.ValueDataMembers.AddRange(new string[] { "QTY" }); LineSeriesView lineseriesView = new LineSeriesView(); DevExpress.XtraCharts.XYMarkerSlideAnimation xyMarkerSlideAnimation2 = new DevExpress.XtraCharts.XYMarkerSlideAnimation(); DevExpress.XtraCharts.CircleEasingFunction easingfunc = new DevExpress.XtraCharts.CircleEasingFunction(); xyMarkerSlideAnimation2.Direction = DevExpress.XtraCharts.XYMarkerSlideAnimationDirection.FromBottomCenter; xyMarkerSlideAnimation2.EasingFunction = easingfunc; lineseriesView.SeriesPointAnimation = xyMarkerSlideAnimation2; chartControl2.SeriesTemplate.CrosshairLabelPattern = "{S}:{V:#,#}"; chartControl2.SeriesTemplate.View = lineseriesView; lineseriesView.MarkerVisibility = DevExpress.Utils.DefaultBoolean.True; lineseriesView.SeriesPointAnimation.EasingFunction.EasingMode = EasingMode.InOut; lineseriesView.SeriesPointAnimation.Enabled = true; } catch (Exception ex) { throw; } }
public void BindIterationChart(List <ProjectSummary> dataSource) { IterationChartBar.Series.Clear(); BarSeriesView effortbarView = new SideBySideBarSeriesView(); Series effortSeries = new Series(); effortSeries.Name = Properties.Resources.colSumEffort; effortSeries.ShowInLegend = true; effortSeries.View = effortbarView; Series inputEffortRateSeries = CreateLineSeries(Properties.Resources.colInputEffortRate, NumericFormat.Percent); foreach (var item in dataSource) { SeriesPoint effortSeriesPoint = new SeriesPoint(item.Name, new object[] { ((object)(item.SumEffort)) }); effortSeries.Points.Add(effortSeriesPoint); SeriesPoint inputEffortRateSeriesPoint = new SeriesPoint(item.Name, new object[] { ((object)(item.SumInputEffortRate)) }); inputEffortRateSeries.Points.Add(inputEffortRateSeriesPoint); } IterationChartBar.Series.Add(effortSeries); IterationChartBar.Series.Add(inputEffortRateSeries); XYDiagram diagram = IterationChartBar.Diagram as XYDiagram; if (diagram == null) { return; } diagram.AxisY.Title.Visible = true; diagram.AxisY.Title.Text = Properties.Resources.WorkUnit; if (diagram.SecondaryAxesY.Count <= 0) { SecondaryAxisY secondAxisY = new SecondaryAxisY(); diagram.SecondaryAxesY.Add(secondAxisY); } LineSeriesView inputEffortRateView = inputEffortRateSeries.View as LineSeriesView; if (inputEffortRateView != null) { inputEffortRateView.AxisY = diagram.SecondaryAxesY[0]; } }
/// <summary> /// Event raised during the MouseClick event inside the chart /// ----Chart is disabled during Output Plotting and hence this won't fired--- /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void chartControl1_MouseClick(object sender, MouseEventArgs e) { if (!IsOutputChart) { if (e.Button == MouseButtons.Right) { XYDiagram xYDiagram = (XYDiagram)chartControl1.Diagram; double LastMouseCentreX = xYDiagram.PointToDiagram(e.Location).NumericalArgument; double LastMouseCentreY = xYDiagram.PointToDiagram(e.Location).NumericalValue; AddPointToChart(chartControl1, LastMouseCentreX, LastMouseCentreY, 0, false); LineSeriesView line = new LineSeriesView(); seriesPointsInChart = chartControl1.Series[0].Points; } } }
Series CreateLineSeries(Ticker ticker, string valueName) { Series s = new Series(); s.Name = ticker.HostName + "-" + ticker.Name + "-" + valueName; s.DataSource = ticker.History; s.CheckableInLegend = true; s.CheckedInLegend = true; s.ArgumentDataMember = "Time"; s.ValueDataMembers.AddRange(valueName); s.ValueScaleType = ScaleType.Numerical; s.ShowInLegend = true; LineSeriesView view = new LineSeriesView(); view.LineStyle.Thickness = (int)(1 * DpiProvider.Default.DpiScaleFactor); s.View = view; return(s); }
private Series CreateLineSeries(StrategyDataItemInfo info) { Series s = new Series(); s.Name = info.Name; s.ArgumentDataMember = GetArgumentDataMember(info); s.ArgumentScaleType = GetArgumentScaleType(info); s.ValueDataMembers.AddRange(info.FieldName); s.ValueScaleType = ScaleType.Numerical; s.ShowInLegend = true; LineSeriesView view = info.ChartType == ChartType.StepLine? new StepLineSeriesView(): new LineSeriesView(); view.Color = info.Color; view.LineStyle.Thickness = (int)(info.GraphWidth * DpiProvider.Default.DpiScaleFactor); s.View = view; s.DataSource = GetDataSource(info); return(s); }
void chartData( ) { var query = tableView.AsEnumerable( ).Where(p => p.Field <string> ("PQX01") == num).Select(p => new { U = p.Field <int> ("U1"), PQX15 = p.Field <string> ("PQX15") }); ChartTitle cTitle = new ChartTitle( ); cTitle.Text = num + " 生产周期"; cTitle.TextColor = System.Drawing.Color.White; cTitle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (( byte )(0))); cTitle.Dock = ChartTitleDockStyle.Top; cTitle.Alignment = System.Drawing.StringAlignment.Near; this.chartControl1.Titles.Clear( ); this.chartControl1.Titles.Add(cTitle); Series seOne = new Series("工序工序产期", ViewType.Line); //设置Series样式 //定性的 seOne.ArgumentScaleType = ScaleType.Qualitative; //数字类型 //seOne . ValueScaleType = ScaleType . Qualitative; chartTableOne = ToTable(query); //绑定数据源 seOne.DataSource = chartTableOne.DefaultView; //table是获取到的数据(可以是数据库中的表,也可以是DataTable) seOne.ArgumentDataMember = "PQX15"; //绑定的文字信息(名称)(坐标横轴) seOne.ValueDataMembers [0] = "U"; //绑定的值(数据)(坐标纵轴) LineSeriesView viewOne = new LineSeriesView( ); viewOne.LineMarkerOptions.Color = System.Drawing.Color.FromArgb((( int )((( byte )(247)))), (( int )((( byte )(150)))), (( int )((( byte )(70))))); viewOne.MarkerVisibility = DevExpress.Utils.DefaultBoolean.True; seOne.View = viewOne; chartControl1.Series.Clear( ); chartControl1.Series.Add(seOne); this.chartControl1.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False; this.chartControl1.Visible = true; }
private void CreateChart(DataTable dt) { //创建几个图形的对象 Series series1 = CreateSeries("吸光度", ViewType.Line, dt, 0); LineSeriesView lineSeriesView1 = new LineSeriesView(); lineSeriesView1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(85)))), ((int)(((byte)(85))))); lineSeriesView1.LineMarkerOptions.Color = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(85)))), ((int)(((byte)(85))))); lineSeriesView1.LineMarkerOptions.Kind = DevExpress.XtraCharts.MarkerKind.Circle; lineSeriesView1.LineMarkerOptions.Size = 10; lineSeriesView1.MarkerVisibility = DevExpress.Utils.DefaultBoolean.True; series1.View = lineSeriesView1; List <Series> list = new List <Series>() { series1 }; chartControl1.Series.AddRange(list.ToArray()); }
private void Form1_Load(object sender, EventArgs e) { chartControl1.DoubleClick += OnDoubleClick; Series series = chartControl1.Series["Europe"]; if (series == null) { return; } LineSeriesView view = series.View as LineSeriesView; if (view == null) { return; } view.SeriesAnimation = new XYSeriesRotateAndZoomAnimation { RotationCount = 1 }; }
public MyChartControl10() { InitializeComponent(); chartControl1.DoubleClick += OnDoubleClick; Series series = chartControl1.Series["Europe"]; if (series == null) { return; } LineSeriesView view = series.View as LineSeriesView; if (view == null) { return; } view.SeriesAnimation = new XYSeriesRotateAndZoomAnimation { RotationCount = 1 }; }
private void Form1_Load(object sender, EventArgs e) { PortDetailSetting(); btnDBOpen.Enabled = true; btnOpen.Enabled = false; btnClose.Enabled = false; DataTable(); SeriesDATA[0] = new Series("Temperature", ViewType.Line); SeriesDATA[1] = new Series("Humidity", ViewType.Line); SeriesDATA[2] = new Series("CO2", ViewType.Line); SeriesDATA[3] = new Series("Movement", ViewType.Line); chartControl.Series.Add(SeriesDATA[0]); chartControl.Series.Add(SeriesDATA[1]); chartControl.Series.Add(SeriesDATA[2]); chartControl.Series.Add(SeriesDATA[3]); XYDiagram diagram = (XYDiagram)chartControl.Diagram; diagram.AxisX.Label.TextPattern = "{A: HH:mm:ss}"; diagram.AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Manual; diagram.AxisX.DateTimeScaleOptions.GridSpacing = 1; diagram.AxisX.DateTimeScaleOptions.MeasureUnit = DateTimeMeasureUnit.Second; diagram.AxisX.DateTimeScaleOptions.GridAlignment = DateTimeGridAlignment.Hour; ((XYDiagram)chartControl.Diagram).SecondaryAxesY.Clear(); SecondaryAxisY secondAxisY = new SecondaryAxisY(); ((XYDiagram)chartControl.Diagram).SecondaryAxesY.Add(secondAxisY); LineSeriesView lineView = new LineSeriesView(); lineView = (LineSeriesView)SeriesDATA[2].View; lineView.AxisY = secondAxisY; lineView.LineMarkerOptions.BorderVisible = false; }
private void Form1_Load(object sender, EventArgs e) { // Create a new Chart control and add it to the form. ChartControl chart = new ChartControl(); chart.Dock = DockStyle.Fill; this.Controls.AddRange(new Control[] { chart }); // Create a Bar series and add points to it. Series series1 = new Series("Bar", ViewType.Bar); series1.Points.Add(new SeriesPoint("A", new double[] { 10 })); series1.Points.Add(new SeriesPoint("B", new double[] { 32 })); series1.Points.Add(new SeriesPoint("C", new double[] { 44 })); series1.Points.Add(new SeriesPoint("D", new double[] { 67 })); // Create a Line series and add points to it. Series series2 = new Series("Line", ViewType.Line); series2.Points.Add(new SeriesPoint("A", new double[] { 15 })); series2.Points.Add(new SeriesPoint("B", new double[] { 18 })); series2.Points.Add(new SeriesPoint("C", new double[] { 21 })); series2.Points.Add(new SeriesPoint("D", new double[] { 27 })); // Add the series to the chart. chart.Series.Add(series1); chart.Series.Add(series2); // Cast the chart's diagram to the XYDiagram type, to access its axes. XYDiagram diagram = (XYDiagram)chart.Diagram; // Add a new additional pane to the diagram. diagram.Panes.Add(new XYDiagramPane("My Pane")); // Assign the additional pane to the second series. // Note that the created pane has the zero index in the collection, // because the existing Default pane is a separate entity. LineSeriesView myView = (LineSeriesView)series2.View; myView.Pane = diagram.Panes[0]; // Define the whole range for the axes. diagram.AxisX.WholeRange.Auto = false; diagram.AxisX.WholeRange.SetMinMaxValues("A", "D"); diagram.AxisY.WholeRange.Auto = false; diagram.AxisY.WholeRange.SetMinMaxValues(0, 70); // Define the visible range for the axes. diagram.AxisX.VisualRange.Auto = false; diagram.AxisX.VisualRange.SetMinMaxValues("B", "C"); diagram.AxisY.VisualRange.Auto = false; diagram.AxisY.VisualRange.SetMinMaxValues(7, 50); // Specify the axes scrolling at the diagram's level. diagram.EnableAxisXScrolling = true; diagram.EnableAxisYScrolling = false; // Individually specify the axes scrolling for the panes. diagram.DefaultPane.EnableAxisXScrolling = DefaultBoolean.Default; diagram.Panes[0].EnableAxisXScrolling = DefaultBoolean.False; diagram.Panes[0].EnableAxisYScrolling = DefaultBoolean.True; // Adjust how the scrolling can be performed. diagram.ScrollingOptions.UseKeyboard = false; diagram.ScrollingOptions.UseMouse = false; diagram.ScrollingOptions.UseScrollBars = true; }
private void InitializeComponent() { this.components = new Container(); XYDiagram diagram = new XYDiagram(); Series series = new Series(); LineSeriesView view = new LineSeriesView(); LineSeriesView view2 = new LineSeriesView(); this.gpgChart = new GPGChartControl(this.components); this.btnCalculate = new GPGButton(); this.tbMinutes = new GPGTextBox(); this.gpgLabel2 = new GPGLabel(); this.lStatus = new GPGLabel(); this.deDate = new DateEdit(); ((ISupportInitialize) this.gpgChart).BeginInit(); ((ISupportInitialize) diagram).BeginInit(); ((ISupportInitialize) series).BeginInit(); ((ISupportInitialize) view).BeginInit(); ((ISupportInitialize) view2).BeginInit(); this.tbMinutes.Properties.BeginInit(); this.deDate.Properties.BeginInit(); base.SuspendLayout(); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; this.gpgChart.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.gpgChart.AppearanceName = "Northern Lights"; diagram.AxisX.Tickmarks.MinorVisible = false; diagram.AxisX.GridLines.Visible = true; diagram.AxisX.GridSpacingAuto = false; diagram.AxisX.Label.Angle = 90; diagram.AxisX.Label.Visible = false; diagram.AxisX.Title.Visible = true; diagram.AxisX.Title.Text = "User Connections"; diagram.AxisX.GridSpacing = 0.01; diagram.AxisX.MinorCount = 1; diagram.AxisX.Interlaced = true; this.gpgChart.Diagram = diagram; this.gpgChart.Legend.Visible = false; this.gpgChart.Location = new Point(0x13, 0x65); this.gpgChart.Name = "gpgChart"; series.PointOptionsTypeName = "PointOptions"; series.View = view; series.Name = "Logins"; this.gpgChart.Series.AddRange(new Series[] { series }); this.gpgChart.SeriesTemplate.PointOptionsTypeName = "PointOptions"; this.gpgChart.SeriesTemplate.View = view2; this.gpgChart.Size = new Size(0x256, 0x120); this.gpgChart.TabIndex = 7; this.btnCalculate.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.btnCalculate.Location = new Point(0x1ee, 0x18b); this.btnCalculate.LookAndFeel.SkinName = "London Liquid Sky"; this.btnCalculate.LookAndFeel.UseDefaultLookAndFeel = false; this.btnCalculate.Name = "btnCalculate"; this.btnCalculate.Size = new Size(0x7f, 0x17); this.btnCalculate.TabIndex = 8; this.btnCalculate.Text = "<LOC>Calculate Stats"; this.btnCalculate.UseVisualStyleBackColor = false; this.btnCalculate.Click += new EventHandler(this.btnCalculate_Click); this.tbMinutes.EditValue = "60"; this.tbMinutes.Location = new Point(0x6c, 0x4b); this.tbMinutes.Name = "tbMinutes"; this.tbMinutes.Properties.Appearance.BackColor = Color.Black; this.tbMinutes.Properties.Appearance.BorderColor = Color.FromArgb(0x52, 0x83, 190); this.tbMinutes.Properties.Appearance.ForeColor = Color.White; this.tbMinutes.Properties.Appearance.Options.UseBackColor = true; this.tbMinutes.Properties.Appearance.Options.UseBorderColor = true; this.tbMinutes.Properties.Appearance.Options.UseForeColor = true; this.tbMinutes.Properties.AppearanceFocused.BackColor = Color.FromArgb(0x10, 0x21, 0x4f); this.tbMinutes.Properties.AppearanceFocused.BackColor2 = Color.FromArgb(0, 0, 0); this.tbMinutes.Properties.AppearanceFocused.BorderColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.tbMinutes.Properties.AppearanceFocused.GradientMode = LinearGradientMode.ForwardDiagonal; this.tbMinutes.Properties.AppearanceFocused.Options.UseBackColor = true; this.tbMinutes.Properties.AppearanceFocused.Options.UseBorderColor = true; this.tbMinutes.Properties.BorderStyle = BorderStyles.Simple; this.tbMinutes.Properties.DisplayFormat.FormatType = FormatType.Numeric; this.tbMinutes.Properties.EditFormat.FormatType = FormatType.Numeric; this.tbMinutes.Properties.LookAndFeel.SkinName = "London Liquid Sky"; this.tbMinutes.Properties.LookAndFeel.UseDefaultLookAndFeel = false; this.tbMinutes.Size = new Size(100, 20); this.tbMinutes.TabIndex = 10; this.gpgLabel2.AutoSize = true; this.gpgLabel2.AutoStyle = true; this.gpgLabel2.Font = new Font("Arial", 9.75f); this.gpgLabel2.ForeColor = Color.White; this.gpgLabel2.IgnoreMouseWheel = false; this.gpgLabel2.IsStyled = false; this.gpgLabel2.Location = new Point(20, 0x4c); this.gpgLabel2.Name = "gpgLabel2"; this.gpgLabel2.Size = new Size(0x52, 0x10); this.gpgLabel2.TabIndex = 12; this.gpgLabel2.Text = "Minute Ticks"; this.gpgLabel2.TextStyle = TextStyles.Default; this.lStatus.AutoSize = true; this.lStatus.AutoStyle = true; this.lStatus.Font = new Font("Arial", 9.75f); this.lStatus.ForeColor = Color.White; this.lStatus.IgnoreMouseWheel = false; this.lStatus.IsStyled = false; this.lStatus.Location = new Point(0x16b, 0x4f); this.lStatus.Name = "lStatus"; this.lStatus.Size = new Size(0x43, 0x10); this.lStatus.TabIndex = 13; this.lStatus.Text = "gpgLabel1"; this.lStatus.TextStyle = TextStyles.Default; this.lStatus.Visible = false; this.deDate.EditValue = null; this.deDate.Location = new Point(0xd6, 0x4b); this.deDate.Name = "deDate"; this.deDate.Properties.Appearance.BackColor = Color.Black; this.deDate.Properties.Appearance.ForeColor = Color.White; this.deDate.Properties.Appearance.Options.UseBackColor = true; this.deDate.Properties.Appearance.Options.UseForeColor = true; this.deDate.Properties.BorderStyle = BorderStyles.Simple; this.deDate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.deDate.Size = new Size(0x8f, 20); this.deDate.TabIndex = 14; base.AutoScaleDimensions = new SizeF(7f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(640, 480); base.Controls.Add(this.deDate); base.Controls.Add(this.lStatus); base.Controls.Add(this.gpgLabel2); base.Controls.Add(this.tbMinutes); base.Controls.Add(this.btnCalculate); base.Controls.Add(this.gpgChart); base.Location = new Point(0, 0); base.Name = "DlgConnectionsGraph"; this.Text = "DlgConnectionsGraph"; base.Controls.SetChildIndex(this.gpgChart, 0); base.Controls.SetChildIndex(this.btnCalculate, 0); base.Controls.SetChildIndex(this.tbMinutes, 0); base.Controls.SetChildIndex(this.gpgLabel2, 0); base.Controls.SetChildIndex(this.lStatus, 0); base.Controls.SetChildIndex(this.deDate, 0); ((ISupportInitialize) diagram).EndInit(); ((ISupportInitialize) view).EndInit(); ((ISupportInitialize) series).EndInit(); ((ISupportInitialize) view2).EndInit(); ((ISupportInitialize) this.gpgChart).EndInit(); this.tbMinutes.Properties.EndInit(); this.deDate.Properties.EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
private void ChartInit() { //#region Title //ChartTitle chartTitle = new ChartTitle(); ////标题内容 //chartTitle.Text = "大盘5分钟走势预测"; ////字体颜色 //chartTitle.TextColor = Color.White; ////字体类型字号 //chartTitle.Font = new Font("新宋体", 11, FontStyle.Bold); ////标题对齐方式 //chartTitle.Dock = ChartTitleDockStyle.Top; //chartTitle.Alignment = StringAlignment.Near; //chartControl1.Titles.Clear(); //chartControl1.Titles.Add(chartTitle); //#endregion #region Series _seCurrent = new Series(DateTime.Now.ToShortDateString(), ViewType.Line); _seCurrent.ArgumentScaleType = ScaleType.Qualitative; _seCurrent.CrosshairHighlightPoints = DevExpress.Utils.DefaultBoolean.False; LineSeriesView myView1 = (LineSeriesView)_seCurrent.View; myView1.Color = Color.DeepSkyBlue; _seCorrected = new Series("当日修正值", ViewType.Spline); _seCorrected.ArgumentScaleType = ScaleType.Qualitative; _seCorrected.CrosshairHighlightPoints = DevExpress.Utils.DefaultBoolean.False; SplineSeriesView myView2 = (SplineSeriesView)_seCorrected.View; myView2.Color = Color.OrangeRed; this.chartControl1.Series.Add(_seCurrent); this.chartControl1.Series.Add(_seCorrected); #endregion Series #region XYDiagram XYDiagram myDiagram = chartControl1.Diagram as XYDiagram; #endregion XYDiagram #region AxisX AxisX myAxisX = myDiagram.AxisX; myAxisX.Label.Font = new Font("Tahoma ", 8, FontStyle.Bold); myAxisX.Label.Staggered = false; myAxisX.Label.Angle = -90; myAxisX.Label.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.True; myAxisX.Tickmarks.MinorVisible = false; myAxisX.WholeRange.Auto = true; myAxisX.WholeRange.AutoSideMargins = true; #endregion AxisX #region AxisY AxisY myAxisY = myDiagram.AxisY; myAxisY.Label.Font = new Font("Tahoma ", 8, FontStyle.Bold); myAxisY.Label.TextPattern = "{ V:F2}"; //myAxisY.GridLines.Color = Color.FromArgb(165, 42, 42); //myAxisY.GridLines.LineStyle.Thickness = 1; //myAxisY.GridLines.LineStyle.DashStyle = DevExpress.XtraCharts.DashStyle.Dot; myAxisY.Tickmarks.MinorVisible = false; myAxisY.WholeRange.Auto = true; #endregion AxisY }
private void InitializeComponent() { this.components = new Container(); LineSeriesView view = new LineSeriesView(); this.btnGetStats = new GPGButton(); this.gpgChartControl = new GPGChartControl(this.components); this.gpgTreeList = new GPGTreeList(this.components); this.colVisible = new TreeListColumn(); this.riVisible = new RepositoryItemCheckEdit(); this.colFilterName = new TreeListColumn(); ((ISupportInitialize) this.gpgChartControl).BeginInit(); ((ISupportInitialize) view).BeginInit(); this.gpgTreeList.BeginInit(); this.riVisible.BeginInit(); base.SuspendLayout(); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; this.btnGetStats.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.btnGetStats.Location = new Point(0x1f3, 0x18c); this.btnGetStats.LookAndFeel.SkinName = "London Liquid Sky"; this.btnGetStats.LookAndFeel.UseDefaultLookAndFeel = false; this.btnGetStats.Name = "btnGetStats"; this.btnGetStats.Size = new Size(130, 0x17); this.btnGetStats.TabIndex = 8; this.btnGetStats.Text = "<LOC>Get Stats"; this.btnGetStats.UseVisualStyleBackColor = false; this.btnGetStats.Click += new EventHandler(this.btnGetStats_Click); this.gpgChartControl.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.gpgChartControl.AppearanceName = "Pastel Kit"; this.gpgChartControl.Location = new Point(240, 0x73); this.gpgChartControl.Name = "gpgChartControl"; this.gpgChartControl.SeriesTemplate.PointOptionsTypeName = "PointOptions"; this.gpgChartControl.SeriesTemplate.View = view; this.gpgChartControl.Size = new Size(0x184, 0x113); this.gpgChartControl.TabIndex = 9; this.gpgTreeList.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.gpgTreeList.Columns.AddRange(new TreeListColumn[] { this.colVisible, this.colFilterName }); this.gpgTreeList.Location = new Point(12, 0x73); this.gpgTreeList.Name = "gpgTreeList"; this.gpgTreeList.BeginUnboundLoad(); this.gpgTreeList.AppendNode(new object[] { false, "Unit Stats" }, -1); this.gpgTreeList.AppendNode(new object[] { false, "Summary Stats" }, -1); this.gpgTreeList.AppendNode(new object[] { false, "Economy Stats" }, -1); this.gpgTreeList.AppendNode(new object[] { true, "Totals Stats" }, -1); this.gpgTreeList.EndUnboundLoad(); this.gpgTreeList.RepositoryItems.AddRange(new RepositoryItem[] { this.riVisible }); this.gpgTreeList.Size = new Size(0xde, 0x113); this.gpgTreeList.TabIndex = 10; this.colVisible.Caption = "Visible"; this.colVisible.ColumnEdit = this.riVisible; this.colVisible.FieldName = "Visible"; this.colVisible.MinWidth = 0x1c; this.colVisible.Name = "colVisible"; this.colVisible.VisibleIndex = 0; this.colVisible.Width = 50; this.riVisible.AutoHeight = false; this.riVisible.Name = "riVisible"; this.riVisible.CheckedChanged += new EventHandler(this.riVisible_CheckedChanged); this.colFilterName.Caption = "Filter Name"; this.colFilterName.FieldName = "FilterName"; this.colFilterName.Name = "colFilterName"; this.colFilterName.VisibleIndex = 1; this.colFilterName.Width = 0x97; base.AutoScaleDimensions = new SizeF(7f, 16f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(640, 480); base.Controls.Add(this.gpgTreeList); base.Controls.Add(this.gpgChartControl); base.Controls.Add(this.btnGetStats); base.Location = new Point(0, 0); base.Name = "DlgSupcomStatsWatcher"; this.Text = "DlgSupcomStatsWatcher"; base.Controls.SetChildIndex(this.btnGetStats, 0); base.Controls.SetChildIndex(this.gpgChartControl, 0); base.Controls.SetChildIndex(this.gpgTreeList, 0); ((ISupportInitialize) view).EndInit(); ((ISupportInitialize) this.gpgChartControl).EndInit(); this.gpgTreeList.EndInit(); this.riVisible.EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitChartControl2() { chartControl4.CrosshairOptions.ArgumentLineColor = System.Drawing.Color.DeepSkyBlue; //chartControl4.CrosshairOptions.ArgumentLineStyle.Thickness = 2; //chartControl4.CrosshairOptions.GroupHeaderPattern = "{A:d MMMM, H:mm}"; chartControl4.CrosshairOptions.ShowOnlyInFocusedPane = false; Series series1 = new Series("1", ViewType.Line); for (int rowIdx = 0; rowIdx < 10; rowIdx++) { series1.Points.Add(new SeriesPoint(rowIdx, rowIdx)); } Series series2 = new Series("2", ViewType.Line); for (int rowIdx = 0; rowIdx < 10; rowIdx++) { series2.Points.Add(new SeriesPoint(rowIdx, rowIdx + 10)); } Series series3 = new Series("3", ViewType.Line); for (int rowIdx = 0; rowIdx < 10; rowIdx++) { series3.Points.Add(new SeriesPoint(rowIdx, rowIdx + 20)); } // Add both series to the chart. chartControl4.Series.AddRange(new Series[] { series1, series2 }); // Cast the second series's view to the LineSeriesView type. LineSeriesView myView = (LineSeriesView)series2.View; // Hide the legend (optional). chartControl4.Legend.Visibility = DefaultBoolean.False; // Cast the chart's diagram to the XYDiagram type, // to access its axes and panes. XYDiagram diagram = (XYDiagram)chartControl4.Diagram; // Add a new additional pane to the diagram. diagram.Panes.Add(new XYDiagramPane("My Pane")); // Note that the created pane has the zero index in the collection, // because the existing Default pane is a separate entity. myView.Pane = diagram.Panes[0]; // Add titles to panes. // Customize the pane layout. diagram.PaneDistance = 10; // Add secondary axes to the diagram, and adjust their options. diagram.SecondaryAxesX.Add(new SecondaryAxisX("My Axis X")); diagram.SecondaryAxesY.Add(new SecondaryAxisY("My Axis Y")); diagram.SecondaryAxesX[0].Alignment = AxisAlignment.Near; diagram.SecondaryAxesY[0].Alignment = AxisAlignment.Near; diagram.SecondaryAxesY[0].GridLines.Visible = true; diagram.EnableAxisXScrolling = true; diagram.EnableAxisXZooming = true; diagram.EnableAxisYScrolling = true; diagram.EnableAxisYZooming = true; // Assign both the additional pane and, if required, // the secondary axes to the second series. myView.AxisX = diagram.SecondaryAxesX[0]; myView.AxisY = diagram.SecondaryAxesY[0]; // Add the chart to the form. chartControl4.Dock = DockStyle.Fill; }
private void InitChartControl4() { chartControl4.Series.Clear(); chartControl4.Controls.Clear(); chartControl4.CrosshairOptions.ArgumentLineColor = System.Drawing.Color.DeepSkyBlue; //chartControl4.CrosshairOptions.ArgumentLineStyle.Thickness = 2; ////chartControl4.CrosshairOptions.GroupHeaderPattern = "{A:d MMMM, H:mm}"; chartControl4.CrosshairOptions.ShowOnlyInFocusedPane = false; WebClient wc = new WebClient(); wc.Encoding = Encoding.UTF8; var json = wc.DownloadString(@"http://localhost/eqpMaxLoad/100218/2020120308/2020120322"); string strJson = json.ToString(); JObject arrJson = JObject.Parse(strJson); JArray arrJsons = JArray.Parse(arrJson["data"].ToString()); DataTable dt = JsonConvert.DeserializeObject <DataTable>(arrJson["data"].ToString()); for (int cdIdx = 0; cdIdx < cdList.Count; cdIdx++) { Series series = new Series(cdList[cdIdx], ViewType.Line); for (int rowIdx = 0; rowIdx < dt.Rows.Count; rowIdx++) { if (dt.Rows[rowIdx]["ITEM_CD"].ToString() == cdList[cdIdx]) { series.Points.Add(new SeriesPoint(DateTime.ParseExact(dt.Rows[rowIdx]["PER_MIN"].ToString(), "yyyyMMdd HHmm", null), dt.Rows[rowIdx]["ITEM_VALUE"])); } } chartControl4.Series.Add(series); XYDiagram diagram = (XYDiagram)chartControl4.Diagram; if (cdIdx == 0) { diagram.AxisX.DateTimeOptions.Format = DateTimeFormat.ShortTime; diagram.AxisX.Label.TextPattern = "{A:HH:mm}"; diagram.AxisX.DateTimeScaleOptions.MeasureUnit = DevExpress.XtraCharts.DateTimeMeasureUnit.Minute; diagram.AxisX.DateTimeScaleOptions.GridAlignment = DevExpress.XtraCharts.DateTimeGridAlignment.Hour; diagram.AxisX.WholeRange.SetMinMaxValues(new DateTime(2020, 12, 03, 9, 0, 0), new DateTime(2020, 12, 03, 17, 59, 0)); diagram.AxisX.WholeRange.SideMarginsValue = 20; diagram.AxisX.VisualRange.SideMarginsValue = 20; //diagram.AxisX.VisualRange.SetMinMaxValues(new DateTime(2020, 12, 03, 9, 0, 0), new DateTime(2020, 12, 03, 14, 59, 0)); diagram.AxisY.Title.Font = new System.Drawing.Font("Tahoma", 10F); diagram.AxisY.Title.Text = cdList[cdIdx]; diagram.AxisY.Title.Visibility = DevExpress.Utils.DefaultBoolean.True; diagram.PaneDistance = 10; diagram.EnableAxisXScrolling = true; diagram.EnableAxisXZooming = true; diagram.EnableAxisYScrolling = true; diagram.EnableAxisYZooming = true; diagram.Panes.Clear(); diagram.SecondaryAxesX.Clear(); diagram.SecondaryAxesY.Clear(); } if (cdIdx > 0) { int viewIdx = cdIdx - 1; LineSeriesView myView = (LineSeriesView)series.View; diagram.Panes.Add(new XYDiagramPane("Pane")); myView.Pane = diagram.Panes[viewIdx]; // Add secondary axes to the diagram, and adjust their options. diagram.SecondaryAxesX.Add(new SecondaryAxisX("My Axis X")); diagram.SecondaryAxesY.Add(new SecondaryAxisY("My Axis Y")); diagram.SecondaryAxesX[viewIdx].Alignment = AxisAlignment.Near; diagram.SecondaryAxesY[viewIdx].Alignment = AxisAlignment.Near; myView.AxisX = diagram.SecondaryAxesX[viewIdx]; myView.AxisY = diagram.SecondaryAxesY[viewIdx]; myView.AxisX.DateTimeOptions.Format = DateTimeFormat.ShortTime; myView.AxisX.Label.TextPattern = "{A:MM-dd HH:mm}"; myView.AxisX.DateTimeScaleOptions.MeasureUnit = DevExpress.XtraCharts.DateTimeMeasureUnit.Minute; myView.AxisX.DateTimeScaleOptions.GridAlignment = DevExpress.XtraCharts.DateTimeGridAlignment.Hour; myView.AxisX.WholeRange.SetMinMaxValues(new DateTime(2020, 12, 03, 9, 0, 0), new DateTime(2020, 12, 03, 17, 59, 0)); //myView.AxisX.VisualRange.SetMinMaxValues(new DateTime(2020, 12, 03, 9, 0, 0), new DateTime(2020, 12, 03, 14, 59, 0)); myView.AxisX.WholeRange.SideMarginsValue = 20; myView.AxisX.VisualRange.SideMarginsValue = 20; diagram.SecondaryAxesY[viewIdx].Title.Font = new System.Drawing.Font("Tahoma", 10F); diagram.SecondaryAxesY[viewIdx].Title.Text = cdList[cdIdx]; diagram.SecondaryAxesY[viewIdx].Title.Visibility = DevExpress.Utils.DefaultBoolean.True; } } // Add the chart to the form. chartControl4.Dock = DockStyle.Fill; }
private void InitChartControl() { //Series series1 = new Series("1", ViewType.Line); //for (int rowIdx = 0; rowIdx < 10; rowIdx++) //{ // series1.Points.Add(new SeriesPoint(rowIdx, rowIdx)); //} //Series series2 = new Series("1", ViewType.Line); //for (int rowIdx = 0; rowIdx < 10; rowIdx++) //{ // series2.Points.Add(new SeriesPoint(rowIdx, rowIdx + 10)); //} //Series series3 = new Series("1", ViewType.Line); //for (int rowIdx = 0; rowIdx < 10; rowIdx++) //{ // series3.Points.Add(new SeriesPoint(rowIdx, rowIdx + 20)); //} XYDiagram xyDiagram1 = new XYDiagram(); var xyDiagramPane1 = new XYDiagramPane(); SecondaryAxisY secondaryAxisY1 = new SecondaryAxisY(); Series series1 = new Series(); PointSeriesLabel pointSeriesLabel1 = new PointSeriesLabel(); SeriesPoint seriesPoint1 = new SeriesPoint(new DateTime(2008, 6, 11, 6, 0, 0, 0), new object[] { ((object)(56.48D)) }); SeriesPoint seriesPoint2 = new SeriesPoint(new DateTime(2008, 6, 11, 3, 0, 0, 0), new object[] { ((object)(53.78D)) }); LineSeriesView lineSeriesView1 = new LineSeriesView(); Series series2 = new Series(); PointSeriesLabel pointSeriesLabel2 = new PointSeriesLabel(); SeriesPoint seriesPoint3 = new SeriesPoint(new DateTime(2008, 6, 11, 6, 0, 0, 0), new object[] { ((object)(1023D)) }); SeriesPoint seriesPoint4 = new SeriesPoint(new System.DateTime(2008, 6, 11, 3, 0, 0, 0), new object[] { ((object)(1021D)) }); AreaSeriesView areaSeriesView1 = new AreaSeriesView(); ChartTitle chartTitle1 = new ChartTitle(); ((ISupportInitialize)(chartControl4)).BeginInit(); ((ISupportInitialize)(xyDiagram1)).BeginInit(); ((ISupportInitialize)(xyDiagramPane1)).BeginInit(); ((ISupportInitialize)(secondaryAxisY1)).BeginInit(); ((ISupportInitialize)(series1)).BeginInit(); ((ISupportInitialize)(pointSeriesLabel1)).BeginInit(); ((ISupportInitialize)(lineSeriesView1)).BeginInit(); ((ISupportInitialize)(series2)).BeginInit(); ((ISupportInitialize)(pointSeriesLabel2)).BeginInit(); ((ISupportInitialize)(areaSeriesView1)).BeginInit(); this.SuspendLayout(); chartControl4.AutoLayout = false; chartControl4.CrosshairOptions.ArgumentLineColor = System.Drawing.Color.DeepSkyBlue; chartControl4.CrosshairOptions.ArgumentLineStyle.Thickness = 2; chartControl4.CrosshairOptions.GroupHeaderPattern = "{A:d MMMM, H:mm}"; chartControl4.CrosshairOptions.ShowOnlyInFocusedPane = false; chartControl4.DataBindings = null; xyDiagram1.AxisX.DateTimeScaleOptions.AutoGrid = false; xyDiagram1.AxisX.DateTimeScaleOptions.GridAlignment = DevExpress.XtraCharts.DateTimeGridAlignment.Hour; xyDiagram1.AxisX.DateTimeScaleOptions.GridSpacing = 6D; xyDiagram1.AxisX.DateTimeScaleOptions.MeasureUnit = DevExpress.XtraCharts.DateTimeMeasureUnit.Hour; xyDiagram1.AxisX.GridLines.Visible = true; xyDiagram1.AxisX.Interlaced = true; xyDiagram1.AxisX.Label.Staggered = true; xyDiagram1.AxisX.Label.TextPattern = "{A:dd/MM HH:mm}"; xyDiagram1.AxisX.Title.Text = "Date"; xyDiagram1.AxisX.VisibleInPanesSerializable = ""; xyDiagram1.AxisX.VisualRange.Auto = false; xyDiagram1.AxisX.VisualRange.MaxValueSerializable = "06/11/2008 06:00:00.000"; xyDiagram1.AxisX.VisualRange.MinValueSerializable = "06/11/2008 03:00:00.000"; xyDiagram1.AxisY.GridLines.MinorVisible = true; xyDiagram1.AxisY.Title.Font = new System.Drawing.Font("Tahoma", 10F); xyDiagram1.AxisY.Title.Text = "Temperature, F"; xyDiagram1.AxisY.Title.Visibility = DevExpress.Utils.DefaultBoolean.True; xyDiagram1.AxisY.VisibleInPanesSerializable = "-1"; xyDiagram1.AxisY.WholeRange.AlwaysShowZeroLevel = false; xyDiagram1.DefaultPane.ScrollBarOptions.XAxisScrollBarVisible = false; xyDiagram1.DefaultPane.ScrollBarOptions.YAxisScrollBarVisible = false; xyDiagram1.DefaultPane.Weight = 2D; xyDiagram1.EnableAxisXScrolling = true; xyDiagram1.PaneDistance = 4; xyDiagramPane1.Name = "Pane 1"; xyDiagramPane1.PaneID = 0; xyDiagramPane1.ScrollBarOptions.XAxisScrollBarVisible = false; xyDiagramPane1.ScrollBarOptions.YAxisScrollBarVisible = false; xyDiagram1.Panes.AddRange(new DevExpress.XtraCharts.XYDiagramPane[] { xyDiagramPane1 }); secondaryAxisY1.Alignment = DevExpress.XtraCharts.AxisAlignment.Near; secondaryAxisY1.AxisID = 0; secondaryAxisY1.GridLines.MinorVisible = true; secondaryAxisY1.GridLines.Visible = true; secondaryAxisY1.Name = "secondaryAxisY1"; secondaryAxisY1.NumericScaleOptions.AutoGrid = false; secondaryAxisY1.NumericScaleOptions.GridSpacing = 4D; secondaryAxisY1.Title.Font = new System.Drawing.Font("Tahoma", 10F); secondaryAxisY1.Title.Text = "Pressure, mbar"; secondaryAxisY1.Title.Visibility = DevExpress.Utils.DefaultBoolean.True; secondaryAxisY1.VisibleInPanesSerializable = "0"; secondaryAxisY1.VisualRange.Auto = false; secondaryAxisY1.VisualRange.AutoSideMargins = false; secondaryAxisY1.VisualRange.MaxValueSerializable = "1025"; secondaryAxisY1.VisualRange.MinValueSerializable = "1014"; secondaryAxisY1.VisualRange.SideMarginsValue = 0D; secondaryAxisY1.WholeRange.AlwaysShowZeroLevel = false; secondaryAxisY1.WholeRange.Auto = false; secondaryAxisY1.WholeRange.AutoSideMargins = false; secondaryAxisY1.WholeRange.MaxValueSerializable = "1025"; secondaryAxisY1.WholeRange.MinValueSerializable = "1014"; secondaryAxisY1.WholeRange.SideMarginsValue = 0D; xyDiagram1.SecondaryAxesY.AddRange(new DevExpress.XtraCharts.SecondaryAxisY[] { secondaryAxisY1 }); chartControl4.Diagram = xyDiagram1; chartControl4.Dock = System.Windows.Forms.DockStyle.Fill; chartControl4.Legend.AlignmentHorizontal = DevExpress.XtraCharts.LegendAlignmentHorizontal.Left; chartControl4.Legend.AlignmentVertical = DevExpress.XtraCharts.LegendAlignmentVertical.BottomOutside; chartControl4.Legend.Direction = DevExpress.XtraCharts.LegendDirection.LeftToRight; chartControl4.Legend.Name = "Default Legend"; chartControl4.Location = new System.Drawing.Point(0, 0); chartControl4.Name = "chart04"; series1.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.DateTime; pointSeriesLabel1.Angle = 90; series1.Label = pointSeriesLabel1; series1.Name = "Temperature (F)"; series1.Points.AddRange(new DevExpress.XtraCharts.SeriesPoint[] { seriesPoint1, seriesPoint2 }); series1.View = lineSeriesView1; series2.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.DateTime; pointSeriesLabel2.Angle = 90; pointSeriesLabel2.LineLength = 5; series2.Label = pointSeriesLabel2; series2.LabelsVisibility = DevExpress.Utils.DefaultBoolean.False; series2.Name = "Pressure (mbar)"; series2.Points.AddRange(new DevExpress.XtraCharts.SeriesPoint[] { seriesPoint3, seriesPoint4 }); areaSeriesView1.AxisYName = "secondaryAxisY1"; areaSeriesView1.MarkerVisibility = DevExpress.Utils.DefaultBoolean.False; areaSeriesView1.PaneName = "Pane 1"; areaSeriesView1.Transparency = ((byte)(0)); series2.View = areaSeriesView1; this.chartControl4.SeriesSerializable = new DevExpress.XtraCharts.Series[] { series1, series2 }; chartControl4.Size = new System.Drawing.Size(1333, 548); chartControl4.TabIndex = 3; chartTitle1.Text = "Weather in London"; chartControl4.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] { chartTitle1 }); chartControl4.ToolTipOptions.ShowForPoints = false; ((ISupportInitialize)(xyDiagramPane1)).EndInit(); ((ISupportInitialize)(secondaryAxisY1)).EndInit(); ((ISupportInitialize)(xyDiagram1)).EndInit(); ((ISupportInitialize)(pointSeriesLabel1)).EndInit(); ((ISupportInitialize)(lineSeriesView1)).EndInit(); ((ISupportInitialize)(series1)).EndInit(); ((ISupportInitialize)(pointSeriesLabel2)).EndInit(); ((ISupportInitialize)(areaSeriesView1)).EndInit(); ((ISupportInitialize)(series2)).EndInit(); ((ISupportInitialize)(this.chartControl4)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new Container(); XYDiagram diagram = new XYDiagram(); RectangleGradientFillOptions options = new RectangleGradientFillOptions(); Series series = new Series(); LineSeriesView view = new LineSeriesView(); this.btnExecute = new SkinButton(); this.gpgChart = new GPGChartControl(this.components); this.tbQuery = new GPGTextArea(); this.btnSave = new SkinButton(); this.cbViewType = new GPGDropDownList(); this.cbLabels = new GPGCheckBox(); ((ISupportInitialize) base.pbBottom).BeginInit(); ((ISupportInitialize) this.gpgChart).BeginInit(); ((ISupportInitialize) diagram).BeginInit(); ((ISupportInitialize) series).BeginInit(); ((ISupportInitialize) view).BeginInit(); this.tbQuery.Properties.BeginInit(); base.SuspendLayout(); base.ttDefault.SetSuperTip(base.pbBottom, null); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; base.ttDefault.DefaultController.ToolTipLocation = ToolTipLocation.RightTop; this.btnExecute.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.btnExecute.AutoStyle = true; this.btnExecute.BackColor = Color.Black; this.btnExecute.ButtonState = 0; this.btnExecute.DialogResult = DialogResult.OK; this.btnExecute.DisabledForecolor = Color.Gray; this.btnExecute.DrawColor = Color.White; this.btnExecute.DrawEdges = true; this.btnExecute.FocusColor = Color.Yellow; this.btnExecute.Font = new Font("Verdana", 8f, FontStyle.Bold); this.btnExecute.ForeColor = Color.White; this.btnExecute.HorizontalScalingMode = ScalingModes.Tile; this.btnExecute.IsStyled = true; this.btnExecute.Location = new Point(0x217, 0x185); this.btnExecute.Name = "btnExecute"; this.btnExecute.Size = new Size(0x5d, 0x1c); this.btnExecute.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.btnExecute, null); this.btnExecute.TabIndex = 0x17; this.btnExecute.TabStop = true; this.btnExecute.Text = "<LOC>Execute"; this.btnExecute.TextAlign = ContentAlignment.MiddleCenter; this.btnExecute.TextPadding = new System.Windows.Forms.Padding(0); this.btnExecute.Click += new EventHandler(this.btnExecute_Click); this.gpgChart.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.gpgChart.AppearanceName = "Pastel Kit"; this.gpgChart.BackColor = Color.Black; this.gpgChart.Border.Color = Color.White; diagram.BackColor = Color.Black; diagram.AxisY.Color = Color.White; diagram.AxisY.InterlacedColor = Color.White; diagram.AxisY.Label.TextColor = Color.White; diagram.AxisY.Title.TextColor = Color.White; diagram.AxisX.Color = Color.White; diagram.AxisX.GridLines.Color = Color.White; diagram.AxisX.InterlacedColor = Color.White; diagram.AxisX.Label.TextColor = Color.White; diagram.AxisX.Title.TextColor = Color.White; diagram.BorderColor = Color.White; diagram.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Gradient; options.Color2 = Color.FromArgb(0x40, 0x40, 0x40); options.GradientMode = RectangleGradientMode.BottomRightToTopLeft; diagram.FillStyle.Options = options; diagram.Shadow.Color = Color.White; this.gpgChart.Diagram = diagram; this.gpgChart.Legend.BackColor = Color.Black; this.gpgChart.Legend.Border.Color = Color.Black; this.gpgChart.Legend.TextColor = Color.White; this.gpgChart.Location = new Point(12, 0x53); this.gpgChart.Name = "gpgChart"; this.gpgChart.RuntimeRotation = true; this.gpgChart.RuntimeSelection = true; series.PointOptionsTypeName = "PointOptions"; view.LineMarkerOptions.Size = 5; series.View = view; series.Name = "Series 1"; this.gpgChart.Series.AddRange(new Series[] { series }); this.gpgChart.SeriesTemplate.PointOptionsTypeName = "PointOptions"; this.gpgChart.Size = new Size(0x269, 0xca); base.ttDefault.SetSuperTip(this.gpgChart, null); this.gpgChart.TabIndex = 0x18; this.tbQuery.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this.tbQuery.BorderColor = Color.White; this.tbQuery.Location = new Point(12, 0x123); this.tbQuery.Name = "tbQuery"; this.tbQuery.Properties.Appearance.BackColor = Color.Black; this.tbQuery.Properties.Appearance.BorderColor = Color.FromArgb(0x52, 0x83, 190); this.tbQuery.Properties.Appearance.ForeColor = Color.White; this.tbQuery.Properties.Appearance.Options.UseBackColor = true; this.tbQuery.Properties.Appearance.Options.UseBorderColor = true; this.tbQuery.Properties.Appearance.Options.UseForeColor = true; this.tbQuery.Properties.AppearanceFocused.BackColor = Color.FromArgb(0x10, 0x21, 0x4f); this.tbQuery.Properties.AppearanceFocused.BackColor2 = Color.FromArgb(0, 0, 0); this.tbQuery.Properties.AppearanceFocused.BorderColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.tbQuery.Properties.AppearanceFocused.GradientMode = LinearGradientMode.ForwardDiagonal; this.tbQuery.Properties.AppearanceFocused.Options.UseBackColor = true; this.tbQuery.Properties.AppearanceFocused.Options.UseBorderColor = true; this.tbQuery.Properties.BorderStyle = BorderStyles.Simple; this.tbQuery.Properties.LookAndFeel.SkinName = "London Liquid Sky"; this.tbQuery.Properties.LookAndFeel.UseDefaultLookAndFeel = false; this.tbQuery.Size = new Size(0x269, 0x60); this.tbQuery.TabIndex = 0x19; this.btnSave.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.btnSave.AutoStyle = true; this.btnSave.BackColor = Color.Black; this.btnSave.ButtonState = 0; this.btnSave.DialogResult = DialogResult.OK; this.btnSave.DisabledForecolor = Color.Gray; this.btnSave.DrawColor = Color.White; this.btnSave.DrawEdges = true; this.btnSave.FocusColor = Color.Yellow; this.btnSave.Font = new Font("Verdana", 8f, FontStyle.Bold); this.btnSave.ForeColor = Color.White; this.btnSave.HorizontalScalingMode = ScalingModes.Tile; this.btnSave.IsStyled = true; this.btnSave.Location = new Point(0x1b4, 0x185); this.btnSave.Name = "btnSave"; this.btnSave.Size = new Size(0x5d, 0x1c); this.btnSave.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.btnSave, null); this.btnSave.TabIndex = 0x1a; this.btnSave.TabStop = true; this.btnSave.Text = "<LOC>Save"; this.btnSave.TextAlign = ContentAlignment.MiddleCenter; this.btnSave.TextPadding = new System.Windows.Forms.Padding(0); this.btnSave.Click += new EventHandler(this.btnSave_Click); this.cbViewType.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.cbViewType.BackColor = Color.Black; this.cbViewType.BorderColor = Color.Black; this.cbViewType.DoValidate = true; this.cbViewType.FlatStyle = FlatStyle.Flat; this.cbViewType.FocusBackColor = Color.White; this.cbViewType.FocusBorderColor = Color.White; this.cbViewType.ForeColor = Color.White; this.cbViewType.FormattingEnabled = true; this.cbViewType.Items.AddRange(new object[] { "Beta Server", "GPG Test Server 1", "GPG Test Server 2", "Test Staging Server" }); this.cbViewType.Location = new Point(12, 0x185); this.cbViewType.Name = "cbViewType"; this.cbViewType.Size = new Size(0xe3, 0x15); base.ttDefault.SetSuperTip(this.cbViewType, null); this.cbViewType.TabIndex = 0x1b; this.cbViewType.SelectedValueChanged += new EventHandler(this.cbViewType_SelectedValueChanged); this.cbLabels.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.cbLabels.AutoSize = true; this.cbLabels.Location = new Point(0xf5, 0x189); this.cbLabels.Name = "cbLabels"; this.cbLabels.Size = new Size(0x89, 0x11); base.ttDefault.SetSuperTip(this.cbLabels, null); this.cbLabels.TabIndex = 0x1c; this.cbLabels.Text = "Show Series Labels"; this.cbLabels.UsesBG = false; this.cbLabels.UseVisualStyleBackColor = true; this.cbLabels.CheckStateChanged += new EventHandler(this.cbLabels_CheckStateChanged); base.AutoScaleDimensions = new SizeF(7f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(640, 480); base.Controls.Add(this.cbLabels); base.Controls.Add(this.cbViewType); base.Controls.Add(this.btnSave); base.Controls.Add(this.tbQuery); base.Controls.Add(this.gpgChart); base.Controls.Add(this.btnExecute); this.Font = new Font("Verdana", 8f); base.Location = new Point(0, 0); base.Name = "DlgAdhocGraph"; base.ttDefault.SetSuperTip(this, null); this.Text = "DlgAdhocGraph"; base.Controls.SetChildIndex(this.btnExecute, 0); base.Controls.SetChildIndex(this.gpgChart, 0); base.Controls.SetChildIndex(this.tbQuery, 0); base.Controls.SetChildIndex(this.btnSave, 0); base.Controls.SetChildIndex(this.cbViewType, 0); base.Controls.SetChildIndex(this.cbLabels, 0); ((ISupportInitialize) base.pbBottom).EndInit(); ((ISupportInitialize) diagram).EndInit(); ((ISupportInitialize) view).EndInit(); ((ISupportInitialize) series).EndInit(); ((ISupportInitialize) this.gpgChart).EndInit(); this.tbQuery.Properties.EndInit(); base.ResumeLayout(false); base.PerformLayout(); }