TChart

Series1.YValues.MaxValue;
Series1.YValues.Total;
Series1.YValues.MinValue;
Series1.YValues.TotalABS;

添加20个节点

  var
    i : Integer;
    stime : string;
  begin
    for i := 1 to 20 do
    begin
      stime := Format( ‘12:0%d‘, [ i ] );
      Self.Series1.Add( Random( 5 ), stime );

    end;
  end;

 比较干净清爽的tchart

object Chart1: TChart
    Position.X = 104.000000000000000000
    Position.Y = 80.000000000000000000
    AllowPanning = pmNone
    Legend.Visible = False
    Title.Text.Strings = (
      ‘TChart‘)
    Title.Visible = False
    AxisBehind = False
    BottomAxis.Axis.Visible = False
    DepthTopAxis.Visible = True
    LeftAxis.Automatic = False
    LeftAxis.AutomaticMaximum = False
    LeftAxis.AutomaticMinimum = False
    LeftAxis.Axis.Visible = False
    LeftAxis.Maximum = 10.000000000000000000
    Pages.AutoScale = True
    Panning.MouseWheel = pmwNone
    Shadow.Visible = False
    View3D = False
    View3DOptions.Elevation = 315
    View3DOptions.Orthogonal = False
    View3DOptions.Perspective = 0
    View3DOptions.Rotation = 360
    Zoom.Allow = False
    Zoom.Brush.Kind = None
    Zoom.Pen.Fill.Color = claSilver
    BevelOuter = bvNone
    TabOrder = 0
    Size.Width = 400.000000000000000000
    Size.Height = 250.000000000000000000
    Size.PlatformDefault = False
    ColorPaletteIndex = 13
    object Series1: TFastLineSeries
      LinePen.Color = xFF4466A3
      LinePen.Fill.Color = xFF4466A3
      XValues.Name = ‘X‘
      XValues.Order = loNone
      YValues.Name = ‘Y‘
      YValues.Order = loNone
    end
  end
时间: 2024-12-17 18:47:39

TChart的相关文章

Delphi中的TChart使用用法

1.TChart Hello world 放一个控件到窗体上,然后写代码加入一个折线数据序列: var Series: TLineSeries; begin Series := TLineSeries.Create(Chart1); Series.Add(100, '头部', clRed); Series.Add(200, '颈部', clGreen); Chart1.AddSeries(Series); end; 这样就会生成一个简单的折线图表,要生成其它类型的数据图表,可以添加不同的数据序列

利用TCHART做分离饼形图

https://www.cnblogs.com/gaodu2003/archive/2009/06/18/1505720.html unit Unit1; interface ……type  TForm1 = class(TForm)    Chart1: TChart;    Series1: TPieSeries;……var  Form1: TForm1;  ps: TPieSeries; implementation {$R *.dfm} procedure TForm1.FormCrea

Tchart打印预览

uses TeePrevi; procedure TFMainChart.AtnPrintExecute(Sender: TObject); begin myChart.PrintOrientation(poLandscape);//poPortrait end; procedure TFMainChart.AtnPreviewExecute(Sender: TObject); begin TeePreview(self,myChart); //ChartPreview(self,myChart

tchart example

Random random = new Random(); // Color SeriesColor; int SeriesIndex=0; tChart1.Series.Clear(); Steema.TeeChart.Styles.Points pieSeries; for (int t = 0; t < 6; t++) { pieSeries = new Steema.TeeChart.Styles.Points(); tChart1.Series.Add(pieSeries); tCha

控件缩写

下列中左侧为缩写,右侧为组件名称. ------------------------Standard Tab------------------------mm TMainMenupm TPopupMenummi TMainMenuItempmi TPopupMenuItemlbl TLabeledt TEditmem TMemobtn TButtoncb TCheckBoxrb TRadioButtonlb TListBoxcb TComboBoxscb TScrollBargb TGroup

TeeChart的X轴,使用伪装的时间

TeeChart曲线的X轴是时间,但是频率很高.没法完全显示. 例如,一秒钟有2000个点,那么点与点的间隔为0.5毫秒. 使用TChart类的GetAxisLabel事件, 函数手册上对此事件的解释: An Event is triggered for each Axis Label painted. There are two different uses for GetAxisLabel: 1) : Axis Labels are Values. Is this case, the Ser

封装TeeChart控件

public class MyChart { //字段 private TChart tChart; /// <summary> /// 构造函数,默认不是3D效果 /// </summary> /// <param name="parent">父容器</param> public MyChart(Control parent) { tChart = new TChart(); this.View3D = false;//默认关闭3D效果

图表控件TeeChart干货分享(绘制2D、3D实时曲线---C++示例源代码--网络首发)

最近接手了一个项目,其中涉及到MFC和实时曲线显示的问题,由于我之前从未接触过此类技术,现学现搞,把其间用到的觉得对初学者有用的东西,总结一下. 尤其是关于TeeChart控件部分,网上资料零碎,且很多不全面,代码难以使用.我苦寻数周在外国一些网站上寻到了一些有用的信息,把相关的可运行的代码示例贴在文中,希望能帮到后来者. MFC部分: 一. 分割窗体 新建一个单文档的MFC工程(注意在向导中设置窗口最大化和分割窗口支持). 新建两个对话框,用于分割窗口 [注意]对话框的样式(Style)属性改

正确使用 C++Builder组件缩写代码

------------------------ Standard Tab ------------------------ mm  TMainMenu pm  TPopupMenu mmi TMainMenuItem pmi TPopupMenuItem lbl TLabel edt TEdit mem TMemo btn TButton cb  TCheckBox rb  TRadioButton lb  TListBox cb  TComboBox scb TScrollBar gb  T