Page 1 of 1

Getting single SeriesMarks

Posted: Fri Mar 07, 2008 1:21 pm
by 7667185
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

Posted: Fri Mar 07, 2008 2:55 pm
by narcis
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!");