TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
-
ZooX
- Newbie
- Posts: 18
- Joined: Tue Aug 25, 2009 12:00 am
Post
by ZooX » Fri Mar 05, 2010 9:54 pm
Hi, I hope I am just doing something wrong and its an easy fix.
You MarksStyle values aren't enough for what I need. I need to basically add my own text to the mark. Which one would think I could do by the method setText that you guys made available
I have
Code: Select all
markItem.setDrawText(true);
markItem.setText("BLAH");
This has NO effect whatsoever. how do I add my own text to the mark of each series?
Brian
-
ZooX
- Newbie
- Posts: 18
- Joined: Tue Aug 25, 2009 12:00 am
Post
by ZooX » Tue Mar 09, 2010 3:19 pm
Anyone... anyone... Bueller
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Tue Mar 09, 2010 3:52 pm
Hi ZooX,
You have 2 options here:
1. Set marks text as labels when you populate a series, for example:
2. Use series' GetMarkText event and customize marks text there.
Hope this helps!
-
ZooX
- Newbie
- Posts: 18
- Joined: Tue Aug 25, 2009 12:00 am
Post
by ZooX » Tue Mar 09, 2010 4:47 pm
Ahhh, why thank you very much. The GetMarkText event will do just fine.
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Tue Mar 09, 2010 5:13 pm
Hi ZooX,
This was discussed
here.
Hope this helps!
-
Stelmach
- Newbie
- Posts: 1
- Joined: Tue Dec 09, 2008 12:00 am
Post
by Stelmach » Tue Mar 16, 2010 1:48 pm
Hi, I couldn't find it on the forum...
how to know what is the serie idx for mark tpis shown?
In ChartTool2GetText(Sender: TMarksTipTool; var Text: string); parameters is no any word about it...
I would like just to show proper serie name in the tip also.
Many thanks in advance,
Mariusz
-
Yeray
- Site Admin
- Posts: 9617
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Mar 18, 2010 4:14 pm
Hi Mariusz,
Are you talking about the java version or the VCL? If you are referring the VCL, please note that this is the java support subforum.