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 Chart_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e) { ann.Active = true; ann.Text = pie.PieValues.Value[valueIndex].ToString(); ann.Left = e.X - ann.Width / 2; ann.Top = e.Y - 20; }
private void SeriesMarksSettings(Steema.TeeChart.Styles.Series series) { series.Marks.Transparent = true; series.Marks.BackColor = Color.Transparent; series.Marks.Shadow.Visible = false; series.Marks.FontSeriesColor = true; series.Marks.Pen.Visible = false; }
private void radioButton1_CheckedChanged(object sender, EventArgs e) { Steema.TeeChart.Styles.Series s = tChart1[0]; if (radioButton1.Checked) { Steema.TeeChart.Styles.Series.ChangeType(ref s, typeof(Line)); } else { Steema.TeeChart.Styles.Series.ChangeType(ref s, typeof(HorizLine)); } }
public void ChangeSeriesType(TChart objChart) { int SeriesCount = 0; for (int index1 = 0; index1 < objChart.Series.Count; index1++) { if (objChart.Series[index1].ShowInLegend == true) { if (objChart.Series[index1].GetType() == typeof(Line)) { if (!((Line)objChart.Series[index1]).Pointer.Visible) // Line Type의 Point가 Visible False일 경우 { ((Line)objChart.Series[index1]).ColorEachLine = false; ((Line)objChart.Series[index1]).Pointer.Visible = true; ((Line)objChart.Series[index1]).Pointer.HorizSize = 2; ((Line)objChart.Series[index1]).Pointer.VertSize = 2; ((Line)objChart.Series[index1]).Pointer.Pen.Color = this.GetSeriesColor(SeriesCount); ((Line)objChart.Series[index1]).Pointer.Pen.Width = 1; ((Line)objChart.Series[index1]).Pointer.Brush.Color = this.GetSeriesColor(SeriesCount); } else { Steema.TeeChart.Styles.Points pointSeries = new Points(); Steema.TeeChart.Styles.Series series = objChart.Series[index1]; Steema.TeeChart.Styles.Series.ChangeType(ref series, pointSeries.GetType()); ((Points)series).Pointer.Visible = true; ((Points)series).Pointer.HorizSize = 2; ((Points)series).Pointer.VertSize = 2; ((Points)series).Pointer.Pen.Color = this.GetSeriesColor(SeriesCount); ((Points)series).Pointer.Pen.Width = 1; ((Points)series).Pointer.Brush.Color = this.GetSeriesColor(SeriesCount); } } else if (objChart.Series[index1].GetType() == typeof(Points)) { Steema.TeeChart.Styles.Line lineSeriees = new Line(); Steema.TeeChart.Styles.Series series = objChart.Series[index1]; VerticalAxis oriaxis = series.VertAxis; Steema.TeeChart.Styles.Series.ChangeType(ref series, lineSeriees.GetType()); ((Line)objChart.Series[index1]).Color = GetSeriesColor(SeriesCount); ((Line)objChart.Series[index1]).ColorEachLine = false; ((Line)objChart.Series[index1]).Pointer.Visible = false; } SeriesCount++; } } }
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 comboBox1_SelectedIndexChanged(object sender, EventArgs e) { Steema.TeeChart.Styles.Series s = tChart1[0]; switch (comboBox1.SelectedIndex) { case 1: Steema.TeeChart.Styles.Series.ChangeType(ref s, typeof(PolarBar)); break; case 2: Steema.TeeChart.Styles.Series.ChangeType(ref s, typeof(Radar)); break; case 3: Steema.TeeChart.Styles.Series.ChangeType(ref s, typeof(WindRose)); break; default: Steema.TeeChart.Styles.Series.ChangeType(ref s, typeof(Polar)); break; } }
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; } }
public static void MarkView(Steema.TeeChart.Styles.Series series, bool pMarkVisible) { series.Marks.Visible = pMarkVisible; series.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value; series.Marks.Arrow.Visible = true; series.Marks.Arrow.Style = System.Drawing.Drawing2D.DashStyle.Dot; series.Marks.Font.Name = "Tahoma"; series.Marks.Arrow.Color = System.Drawing.Color.Black; series.Marks.Font.Size = 7; series.Marks.Symbol.Shadow.Height = 1; series.Marks.Symbol.Shadow.Visible = true; series.Marks.Symbol.Shadow.Width = 1; series.Marks.Transparent = false; }
private void Donut1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e) { // Here we can check if the Mark value is less than... //if (series.YValues[e.ValueIndex] < Val) /* * * if (e.ValueIndex == 1) * { * (series as Steema.TeeChart.Styles.Pie).MarksPie.InsideSlice = false; * } * else * { * (series as Steema.TeeChart.Styles.Pie).MarksPie.InsideSlice = true; * } */ }
/// <summary> /// Show or hide a particular label / listbox depending on the series passed in. /// </summary> private void ShowHideListBox(string ControlName, Steema.TeeChart.Styles.Series S, int i) { Label L = (Label)FindControl(DetailsPanel, ControlName + "Label"); ListBox List = (ListBox)FindControl(DetailsPanel, ControlName); if (i >= S.ValuesLists.Count) { L.Visible = false; List.Visible = false; } else { L.Visible = true; List.Visible = true; L.Text = S.ValuesLists[i].Name; } }
private void AdjustAxisScale(Steema.TeeChart.Styles.Series s, int firstPoint, int lastPoint, bool vertical) { double min, max; if (vertical) { FindMinMax(s.YValues, firstPoint, lastPoint, out min, out max); s.GetVertAxis.Automatic = false; s.GetVertAxis.SetMinMax(min, max); } else { FindMinMax(s.XValues, firstPoint, lastPoint, out min, out max); s.GetHorizAxis.Automatic = false; s.GetHorizAxis.SetMinMax(min, max); } }
/// <summary> /// User has changed the selected series in the gallery - update the details box. /// </summary> void OnGalleryChartChange(object sender, EventArgs e) { if (UserChange) { GalleryPanel Gallery = (GalleryPanel)tabControl1.SelectedTab.Controls[0]; Steema.TeeChart.Styles.Series S = Gallery.SelectedChart[0]; ShowHideListBox("X", S, 0); ShowHideListBox("Y1", S, 1); ShowHideListBox("Y2", S, 2); ShowHideListBox("Y3", S, 3); ShowHideListBox("Y4", S, 4); if (S.ValuesLists.Count > 5) { MessageBox.Show("Too many y variables for this type of plot"); } } }
private void tChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, MouseEventArgs e) { label1.Text = " Clicked Tower : " + valueIndex.ToString() + " X : " + tower1.XValues[valueIndex].ToString("0.##") + " Y : " + tower1.YValues[valueIndex].ToString("0.##") + " Z : " + tower1.ZValues[valueIndex].ToString("0.##"); if (valueIndex != oldIndex) { if (oldIndex != -1) { tower1.Colors[oldIndex] = oldColor; } oldColor = tower1[valueIndex].Color; oldIndex = valueIndex; tower1[valueIndex].Color = Color.Red; } }
private void TChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e) { }
public virtual string[] UsedParameters(Steema.TeeChart.Styles.Series s) { return(null); }
public override string[] UsedParameters(Steema.TeeChart.Styles.Series s) { return(_parameters); }
private void bar1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e) { e.MarkText = e.MarkText + " $"; }
private void series_clicked(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, UIGestureRecognizer e) { Console.WriteLine("Series clicked"); }