Page 1 of 1

Custom Mark Text

Posted: Fri Mar 05, 2010 9:54 pm
by 15354147
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

Re: Custom Mark Text

Posted: Tue Mar 09, 2010 3:19 pm
by 15354147
Anyone... anyone... Bueller

Re: Custom Mark Text

Posted: Tue Mar 09, 2010 3:52 pm
by narcis
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!

Re: Custom Mark Text

Posted: Tue Mar 09, 2010 4:47 pm
by 15354147
Ahhh, why thank you very much. The GetMarkText event will do just fine.

Re: Custom Mark Text

Posted: Tue Mar 09, 2010 5:13 pm
by narcis
Hi ZooX,

This was discussed here.

Hope this helps!

Re: Custom Mark Text

Posted: Tue Mar 16, 2010 1:48 pm
by 10551107
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

Re: Custom Mark Text

Posted: Thu Mar 18, 2010 4:14 pm
by yeray
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.