Setting style of marks to Values

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
shoey
Newbie
Newbie
Posts: 9
Joined: Mon Aug 27, 2007 12:00 am

Setting style of marks to Values

Post by shoey » Wed Sep 05, 2007 5:21 am

Hi,

I want to set the style of the marks displayed in a line chart to show Values. The default seems to be Labels.

I can set them visible using

tChart1.getSeries(0).getMarks().setVisible(true);

How then can I change the style?

Thanks in advance for all replies

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

Post by Narcís » Wed Sep 05, 2007 8:30 am

Hi shoey,

The default marks style is automatic but this displays series labels if labels exist.

To set marks displaying values you can use this:

Code: Select all

            tChart.getSeries(0).getMarks().setStyle(MarksStyle.VALUE);
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

shoey
Newbie
Newbie
Posts: 9
Joined: Mon Aug 27, 2007 12:00 am

Post by shoey » Thu Sep 06, 2007 7:09 am

Thanks Narcis,

Sorry I wasn't more specific. As with the other problems I am encountering I am trying to do this via JavaScript in a webpage.
Using:

Code: Select all

tChart.getSeries(0).getMarks().setStyle(MarksStyle.VALUE);
will return a JavaScript error:
'MarksStyle' is undefined
Am I doing something wrong or is there another way of doing this?

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Sun Sep 09, 2007 6:13 pm

Please provide us with more information (eg sample code) in how you are trying to use the component with JavaScript

bugpuzz
Newbie
Newbie
Posts: 2
Joined: Thu Sep 02, 2004 4:00 am

Post by bugpuzz » Tue Oct 09, 2007 1:03 pm

You must have imported MarkStyles

import com.steema.teechart.styles.*

now the MarkStyles class is visible.
7665556 wrote:Thanks Narcis,

Sorry I wasn't more specific. As with the other problems I am encountering I am trying to do this via JavaScript in a webpage.
Using:

Code: Select all

tChart.getSeries(0).getMarks().setStyle(MarksStyle.VALUE);
will return a JavaScript error:
'MarksStyle' is undefined
Am I doing something wrong or is there another way of doing this?

Post Reply