Getting single SeriesMarks

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Marius
Newbie
Newbie
Posts: 44
Joined: Thu Jan 31, 2008 12:00 am

Getting single SeriesMarks

Post by Marius » Fri Mar 07, 2008 1:21 pm

I have a question that perhaps someone can give me some advice on:

I need to access single marks of my series, to display them. I.e. I want to fetch Series.getMarks().getMark(myDesiredMark).setColor..., as an example. How can I obtain this? Also, I cant seem to be able to set the marks text using getMarks().setText(aValue)...

So, any takers? ;)

Best regards,
Marius Lunde

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

Post by Narcís » Fri Mar 07, 2008 2:55 pm

Hi Marius,
I need to access single marks of my series, to display them. I.e. I want to fetch Series.getMarks().getMark(myDesiredMark).setColor..., as an example. How can I obtain this?
For this I recommend you to use an Annotation tool. You can find an example of its usage in the second post from Marc on this thread.
Also, I cant seem to be able to set the marks text using getMarks().setText(aValue)...
For this you can either use OnGetSeriesMark event as in the example at Tutorial 6 - Working with Series or set text for a specific point like this:

Code: Select all

        tChart.getSeries(0).getLabels().setString(3, "hello world!");
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

Post Reply