0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

c++ builder XE4, 10.2 Tokyo > TeeChart > Series1に10個ずつデータを追加する

Last updated at Posted at 2015-12-21
動作環境
C++ builder XE4
    TeeChart Lite v2013.08.130414
RAD Studio 10.2 Tokyo Update 2 (追記 2018/01/10)
    TeeChart v2016.17.160129 32bit VCL

http://qiita.com/7of9/items/607f9d0a1fa19d731abe
の続き。

ボタンを押すたびに10個のプロットを追加する実装。

Unit1.cpp
void __fastcall TForm1::B_addClick(TObject *Sender)
{
	TDateTime lastDt = Series1->XValues->Last();

	TDateTime workDt = IncSecond(lastDt, 1);
	double dval;
	for (int idx=0; idx < 10; idx++) {
		dval = (double)random(60);
		Series1->AddXY(workDt, dval, L"", clRed);
		workDt = IncSecond(workDt, 1);
	}
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?