掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
TChartの縦棒グラフの下ラベルの位置について (ID:19844)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
直接な回答ではありませんがお許しください。 視点を変えて、ラベルを回転させて表示させるのは如何でしょう? procedure TForm1.Chart1ClickBackground(Sender: TCustomChart; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); var BottomAxisPos: integer; begin //マウス左ボタンが押されたら if Button = mbLeft then begin //ボトムのY座標を取得 BottomAxisPos := TChart(Sender).Series[0].CalcYPosValue(0); //マウス押下時のY座標とボトムY座標を比較 if Y > BottomAxisPos then //ボトムのラベルを180度回転 TChart(Sender).BottomAxis.LabelsAngle := (TChart(Sender).BottomAxis.LabelsAngle + 90) mod 180; end; end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.