⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loglab.pas

📁 delphi多层应用系统 delphi多层应用系统
💻 PAS
字号:
{*********************************************}
{ TeeChart Delphi Component Library           }
{ Logarithmic Labels Demo                     }
{ Copyright (c) 1996 by David Berneda         }
{ All rights reserved                         }
{*********************************************}
unit LogLab;
{$P-}

interface

{ This form shows how custom Axis labels can be specified }
{ The Chart.OnGetNextAxisLabel event is used to supply the axis with
  custom label positions and values. }

uses
  WinProcs, WinTypes, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ExtCtrls, TeeProcs, TeEngine, Chart, Series, StdCtrls, Buttons;

type
  TLogLabelsForm = class(TForm)
    Chart1: TChart;
    Series1: TFastLineSeries;
    Panel1: TPanel;
    BitBtn2: TBitBtn;
    Memo1: TMemo;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

{$R *.DFM}

procedure TLogLabelsForm.FormCreate(Sender: TObject);
begin
  { Axis settings }
  Chart1.BottomAxis.Logarithmic:=True;
  Chart1.BottomAxis.TickOnLabelsOnly:=True;
  Chart1.BottomAxis.SetMinMax( 10.0, 1000);
  Chart1.LeftAxis.Logarithmic:=True;
  Chart1.LeftAxis.TickOnLabelsOnly:=True;
  Chart1.LeftAxis.SetMinMax( 10.0, 1000);

  { adding XY values to Series1 }
  Series1.XValues.DateTime:=False;
  Series1.AddXY( 100, 100, '', clTeeColor );
  Series1.AddXY( 500, 200, '', clTeeColor );
  Series1.AddXY( 800, 300, '', clTeeColor );
  Series1.AddXY( 200, 200, '', clTeeColor );
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -