0
1

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 > TeeChart > 対数スケールでY軸ラベルとY軸タイトルが重なる問題の回避

Last updated at Posted at 2015-12-25
動作確認
C++ Builder XE4

TeeChartにおいて対数スケールにした時にY軸ラベル(0.0001とか)とY軸タイトル (何かの値[単位])という文字列が重なる。

LeftAxis->AxisValuesFormat = L"#0.####";
の時に顕著に重なる。

TChart1のデザインタブで設定をいくつか試したが改善せず。

以下を見つけた。
http://www.newtone.co.jp/support/suqatcd1.html

XE4用のTeeChartでは以下のように対応する。

Unit1.cpp
target->MarginLeft = 4;
target->LeftAxis->Title->Caption = kLeftAxisTitle + L"\r\n";

プロパティがリンクのものといくつか違っていた。

また、リンクでは += などしていたが、こうすると何回かその処理を通るときにまずいので固定値に変更した。

対数スケールと線形スケールの切替えなどする時に複数回通るため。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?