private void InitializeChart() { tChart1.Aspect.View3D = false; tChart1.Legend.Visible = false; tChart1.Header.Font.Color = Color.FromArgb(225, 225, 255); tChart1.Header.Text = "Euribor"; tChart1.Panel.Bevel.Inner = BevelStyles.None; tChart1.Panel.Bevel.Outer = BevelStyles.None; tChart1.Panel.Color = Color.White; tChart1.Panel.Gradient.Visible = false; tChart1.Axes.Left.AxisPen.Color = Color.FromArgb(120, 60, 20); tChart1.Axes.Left.AxisPen.Width = 4; tChart1.Axes.Left.MinorTicks.Visible = false; tChart1.Axes.Left.Grid.Color = Color.FromArgb(245, 225, 170); tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid; tChart1.Axes.Bottom.AxisPen.Color = Color.FromArgb(120, 60, 20); tChart1.Axes.Bottom.Grid.Visible = false; tChart1.Axes.Bottom.MinorTicks.Visible = false; tChart1.Axes.Bottom.AxisPen.Width = 4; tChart1.Walls.Back.Pen.Visible = false; tChart1.Walls.Back.Gradient.Visible = false; tChart1.Walls.Back.Color = Color.White; tChart1.Series.Add(series1 = new Steema.TeeChart.Styles.Line()); series1.Color = Color.FromArgb(128, 128, 128); ((Custom)series1).Pointer.Style = PointerStyles.Circle; ((Custom)series1).Pointer.Visible = true; series1.FillSampleValues(); }
private void rbArea_CheckedChanged(object sender, EventArgs e) { if (rbArea.Checked) { tChart1.Aspect.View3D = true; tChart1.Series.Remove(series1); series1.Chart = null; tChart1.Series.Add(series1 = new Steema.TeeChart.Styles.Area()); series1.Color = Color.FromArgb(128, 128, 128); series1.FillSampleValues(); ((Custom)series1).Smoothed = cbSmoothed.Checked; } }
private void rbLine_CheckedChanged(object sender, EventArgs e) { if (rbLine.Checked) { tChart1.Aspect.View3D = false; tChart1.Series.Remove(series1); series1.Chart = null; tChart1.Series.Add(series1 = new Steema.TeeChart.Styles.Line()); ((Custom)series1).Pointer.Style = PointerStyles.Circle; ((Custom)series1).Pointer.Visible = true; series1.Color = Color.FromArgb(128, 128, 128); series1.FillSampleValues(); ((Custom)series1).Smoothed = cbSmoothed.Checked; } }