ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/FastLine_Realtime.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class FastLine_Realtime : Samples.BaseForm
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label1;
private Steema.TeeChart.Styles.FastLine fastLine1;
private Steema.TeeChart.Styles.FastLine fastLine2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.ComponentModel.IContainer components = null;
private bool Stopped;
private int MaxPoints;
private int ScrollPoints;
public FastLine_Realtime()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
// Prepare chart for maximum speed:
// ClipPoints:=False;
tChart1.Header.Visible = false;
tChart1.Legend.Visible = false;
tChart1.Axes.Left.AxisPen.Width=1;
tChart1.Axes.Bottom.AxisPen.Width=1;
tChart1.Axes.Bottom.Labels.RoundFirstLabel=false;
tChart1.Aspect.View3D=false;
// Private variables for this demo:
Stopped=true;
MaxPoints=10000;
ScrollPoints=5000;
// Prepare series.
// Disable AutoRepaint and X Order
// AutoRepaint=False means "real-time" drawing mode.
// Points are displayed just after adding them,
// without redrawing the whole chart.
fastLine1.AutoRepaint=false;
fastLine2.AutoRepaint=false;
// Set Ordering to none, to increment speed when adding points
fastLine1.XValues.Order=Steema.TeeChart.Styles.ValueListOrder.None;
fastLine1.XValues.Order=Steema.TeeChart.Styles.ValueListOrder.None;
// Initialize axis scales
tChart1.Axes.Left.SetMinMax(0,10000);
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。