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
Setting style of marks to Values
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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 |
Instructions - How to post in this forum |
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:
will return a JavaScript error:
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);
Am I doing something wrong or is there another way of doing this?'MarksStyle' is undefined
You must have imported MarkStyles
import com.steema.teechart.styles.*
now the MarkStyles class is visible.
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:will return a JavaScript error:Code: Select all
tChart.getSeries(0).getMarks().setStyle(MarksStyle.VALUE);
Am I doing something wrong or is there another way of doing this?'MarksStyle' is undefined