loglab.cpp
来自「TeeChart Pro ActiveX是西班牙Steema SL公司开发的图表」· C++ 代码 · 共 48 行
CPP
48 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "LogLab.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TCustomLabelsForm *CustomLabelsForm;
//---------------------------------------------------------------------------
__fastcall TCustomLabelsForm::TCustomLabelsForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TCustomLabelsForm::FormCreate(TObject *Sender)
{
// 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 ); // 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 );
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?