TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
-
BugTrapper
- Newbie
- Posts: 5
- Joined: Mon Mar 07, 2016 12:00 am
Post
by BugTrapper » Thu Mar 10, 2016 5:43 pm
For testing purposes I wanted to change the label texts of TChart bottom axis to custom ones, so I wrote this code, but
that didn't change the bottom labels in any way ?? What could be wrong here ??
Code: Select all
procedure TFormVertikale.Chart1BeforeDrawAxes(Sender: TObject);
var
chart: TChart;
AxisItem: TAxisItem;
i: integer;
begin
chart:=TChart(Sender);
for i := 0 to chart.Axes.Bottom.Items.Count-1 do
begin
AxisItem:=chart.Axes.Bottom.Items[i];
AxisItem.Text:='5';
end;
end;
Thx in advance.
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Fri Mar 11, 2016 4:11 pm
Hello,
Have you tried at OnGetAxisLabel event?
-
BugTrapper
- Newbie
- Posts: 5
- Joined: Mon Mar 07, 2016 12:00 am
Post
by BugTrapper » Sat Mar 12, 2016 10:59 am
Yes, in event OnGetAxisLabel() I can change my axis labels without any problems
)
You are right
)
Can you help me also with the panning issue, it is a RAD Studio problem, or a TeeChart problem ?
I want to write my own Pan handler with Gestures.
Thank you very much.
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Mon Mar 14, 2016 3:52 pm
Hello,
BugTrapper wrote:Yes, in event OnGetAxisLabel() I can change my axis labels without any problems
)
You are right
)
Great!
BugTrapper wrote:Can you help me also with the panning issue, it is a RAD Studio problem, or a TeeChart problem ?
I want to write my own Pan handler with Gestures.
Please, let's continue the conversation at the according thread:
http://www.teechart.net/support/viewtop ... 021#p71021