/************************************************************************/ void FillGraphData(PointPairList obDataPoints) { ClearGraphData(); // Update all curve data points GraphPane myPane = graphTrendData.MasterPane.PaneList[0]; myPane.Fill = new Fill(Color.LightGray); myPane.Chart.Fill = new Fill(Color.LightGray); LineItem myCurve = myPane.AddCurve("Raw Sensor Signal", obDataPoints, Color.Red, SymbolType.None); // Set equal spacing for the frequency values on base axis myCurve.BaseAxis(myPane).Type = AxisType.LinearAsOrdinal; myCurve.BaseAxis(myPane).ScaleFormatEvent += new Axis.ScaleFormatHandler(this.BaseAxisScaleFormatHandler); myCurve.ValueAxis(myPane).ScaleFormatEvent += new Axis.ScaleFormatHandler(this.ValueAxisScaleFormatHandler); // activate the cardinal spline smoothing myCurve.Line.IsSmooth = true; myCurve.Line.SmoothTension = 0.0F; // Calculate the Axis Scale Ranges graphTrendData.AxisChange(); graphTrendData.Refresh(); graphTrendData.Visible = true; }