public Axis_GetAxisLabel() { // This call is required by the Windows Form Designer. InitializeComponent(); fastLine1.FillSampleValues(); }
public Function_CurveFitting() { // This call is required by the Windows Form Designer. InitializeComponent(); fastLine1.FillSampleValues(100); }
public Function_Median() { // This call is required by the Windows Form Designer. InitializeComponent(); fastLine1.FillSampleValues(); }
public Exponential_Trend() { // This call is required by the Windows Form Designer. InitializeComponent(); fastLine1.FillSampleValues(100); // TODO: Add any initialization after the InitializeComponent call }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button button = FindViewById <Button>(Resource.Id.MyButton); button.Click += delegate { timer1.Enabled = !timer1.Enabled; button.Text = (timer1.Enabled) ? Resources.GetString(Resource.String.Stop) : Resources.GetString(Resource.String.Start); }; //Add the chart tChart1 = new Steema.TeeChart.TChart(this); tChart1.Aspect.View3D = false; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.None; tChart1.Legend.Visible = false; tChart1.Panel.Gradient.Visible = false; tChart1.Walls.Back.Gradient.Visible = false; tChart1.Walls.Back.Visible = false; tChart1.Axes.Left.Grid.Visible = false; tChart1.Axes.Bottom.Grid.Visible = false; tChart1.Axes.Left.Automatic = false; tChart1.Axes.Bottom.Automatic = false; tChart1.Axes.Left.SetMinMax(MinValue, MaxValue); tChart1.Axes.Bottom.SetMinMax(0, NumPoints); tChart1.ClickSeries += tChart1_ClickSeries; //Left axis disabled for performance purposes. tChart1.Axes.Left.Visible = false; var fastLine1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart); fastLine1.FillSampleValues(NumPoints); fastLine1.DrawAllPoints = false; LinearLayout layout = FindViewById <LinearLayout>(Resource.Id.linearLayout1); layout.AddView(tChart1, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent, 400)); timer1 = new System.Timers.Timer(); timer1.Elapsed += new System.Timers.ElapsedEventHandler(timer1_Elapsed); timer1.Interval = 100; timer1.Start(); }
private void InitializeChart() { tChart1.Aspect.View3D = false; tChart1.Legend.Visible = false; tChart1.Panel.Color = Color.Black; tChart1.Panel.Gradient.Visible = false; tChart1.Axes.Bottom.Labels.Font.Color = Color.White; tChart1.Axes.Left.Labels.Font.Color = Color.White; tChart1.Walls.Back.Brush.Gradient.Visible = false; tChart1.Walls.Back.Color = Color.Black; tChart1.Series.Add(fastLine = new Steema.TeeChart.Styles.FastLine()); fastLine.FillSampleValues(200); tChart1.Axes.Left.MaximumRound = true; tChart1.Axes.Left.MinimumRound = true; }
public FastLine_Nulls() { // This call is required by the Windows Form Designer. InitializeComponent(); fastLine1.FillSampleValues(50); // set some null points: fastLine1.SetNull(14); fastLine1.SetNull(20); fastLine1.SetNull(31); fastLine1.SetNull(39); // allow nulls: // (Ignore nulls ... faster ) fastLine1.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.Ignore; // Draw in "stairs" mode: fastLine1.Stairs = true; }
public WelcomeForm() { // // Required for Windows Form Designer support // InitializeComponent(); // constants to rotate... // fill the series pieSeries1.FillSampleValues(7); //Color set with transparency pieSeries1.Colors[0] = Color.FromArgb(120, 224, 77, 44); pieSeries1.Colors[1] = Color.FromArgb(120, 244, 158, 54); pieSeries1.Colors[2] = Color.FromArgb(120, 251, 197, 65); pieSeries1.Colors[3] = Color.FromArgb(120, 254, 236, 58); pieSeries1.Colors[4] = Color.FromArgb(120, 154, 183, 194); pieSeries1.Colors[5] = Color.FromArgb(120, 50, 99, 125); pieSeries1.Colors[6] = Color.FromArgb(120, 28, 63, 95); pieSeries1.Colors[7] = Color.FromArgb(120, 170, 155, 51); lineSeries1.FillSampleValues(30); lineSeries2.FillSampleValues(30); fastLineSeries1.FillSampleValues(50); Delta = 1; DeltaElev = 1; DeltaRot = 1; TheSeries = pieSeries1; tChart1.Aspect.Zoom = 1; tChart1.Aspect.Orthogonal = false; tChart1.Aspect.Elevation = 315; tChart1.Aspect.Rotation = 360; tChart1.Aspect.Perspective = 0; tChart1.Aspect.Chart3DPercent = 40; r = new Random(); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Creating the Chart component Chart = new TChart(); // Setting the Chart bounds Chart.Frame = View.Frame; // 2D Chart Chart.Aspect.View3D = false; // Customizing the Axes grid appearance Chart.Axes.Bottom.Grid.Visible = false; Chart.Axes.Bottom.MinorTicks.Visible = false; // Setting a custom left axis increment, and axis pen width, and other properties Chart.Axes.Left.Increment = 12.5; Chart.Axes.Left.AxisPen.Width = 1; Chart.Axes.Bottom.AxisPen.Width = 1; Chart.Axes.Left.MaximumOffset = 12; Chart.Axes.Left.AxisPen.Visible = false; // Chaging the Legend, Panel and Walls appearance Chart.Legend.Transparent = true; Chart.Legend.Alignment = LegendAlignments.Bottom; Chart.Walls.Back.Visible = false; Chart.Panel.Gradient.Visible = false; // Allow to Zoom and Pan over the Chart Series Chart.Panning.Active = true; Chart.Zoom.Active = true; // Creating the Chart Series (FastLine series in that case) Steema.TeeChart.Styles.FastLine fline1 = new Steema.TeeChart.Styles.FastLine(Chart.Chart); Steema.TeeChart.Styles.FastLine fline2 = new Steema.TeeChart.Styles.FastLine(Chart.Chart); // Customizing the Series fline1.Color = Color.FromArgb(255, 156, 73, 181); fline1.Color = Color.FromArgb(255, 107, 38, 131); // Adding data to the Series fline1.FillSampleValues(100); fline2.FillSampleValues(100); // Hiding Series Marks fline1.Marks.Visible = false; fline2.Marks.Visible = false; fline1.LinePen.Width = 2; fline2.LinePen.Width = 2; // Left axis title mods Chart.Axes.Left.Title.Text = "This is a title"; Chart.Axes.Left.Title.Angle = 90; Chart.Axes.Left.Title.Visible = true; // Setting custom size for left axis labels Chart.Axes.Left.Labels.AutoSize = false; Chart.Axes.Left.Labels.CustomSize = 50; // Setting custom left axis increment Chart.Axes.Left.Increment = fline1.YValues.Maximum / 5; Chart.Panning.Allow = ScrollModes.Horizontal; // Scroll by points per page.... // Chart.Page.MaxPointsPerPage = 10; // Scroll by using UISlider and SetMinMax Chart.Panel.MarginBottom += 10; Chart.Axes.Bottom.SetMinMax(0, 10); UISlider slider1 = new UISlider(new CoreGraphics.CGRect(0, this.View.Frame.Height - 25, this.View.Frame.Width, 20)); slider1.MinValue = 5; slider1.MaxValue = 95; slider1.Value = 5.0f; // the current value slider1.ValueChanged += (sender, e) => Chart.Axes.Bottom.SetMinMax(((UISlider)sender).Value - 5, ((UISlider)sender).Value + 5); // Finally adding the Chart View as SubView to the parent View View.AddSubview(Chart); View.AddSubview(slider1); }