Custom Mark Text

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
ZooX
Newbie
Newbie
Posts: 18
Joined: Tue Aug 25, 2009 12:00 am

Custom Mark Text

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
Newbie
Posts: 18
Joined: Tue Aug 25, 2009 12:00 am

Re: Custom Mark Text

Post by ZooX » Tue Mar 09, 2010 3:19 pm

Anyone... anyone... Bueller

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Custom Mark Text

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:

Code: Select all

series.add(y, "my mark text");
2. Use series' GetMarkText event and customize marks text there.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ZooX
Newbie
Newbie
Posts: 18
Joined: Tue Aug 25, 2009 12:00 am

Re: Custom Mark Text

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
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Custom Mark Text

Post by Narcís » Tue Mar 09, 2010 5:13 pm

Hi ZooX,

This was discussed here.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Stelmach
Newbie
Newbie
Posts: 1
Joined: Tue Dec 09, 2008 12:00 am

Re: Custom Mark Text

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
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Custom Mark Text

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply