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 XE4, 10.2 Tokyo > TeeChart > 凡例 > 凡例文字列の変更 > NameでなくLegendTitleを設定する

Last updated at Posted at 2015-10-11
動作環境
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/800e529b597774bea8da
と関連して、TeeChartのグラフ表示にて、凡例文字列のセットに以下の2点の問題があった。

  1. 同じ文字列を異なるSeriesに設定できない
  2. (などの文字を受け付けない。

失敗していたコードは以下だった。

target->Legend->LegendStyle = lsSeries; // 凡例はシリーズ名にする
target->Series[0]->Name= titleStr;

以下は2つの問題が発生しないことがわかった。

target->Legend->LegendStyle = lsSeries; // 凡例はシリーズ名にする
target->Series[0]->LegendTitle= titleStr;

Nameに設定した文字列は確かに凡例として表示されるが、同じ文字を異なるSeriesに設定すると1つ目の問題が発生する。また、括弧などの文字はNameに指定できない、というのが問題の原因だった。

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?