TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
tangone
- Newbie
- Posts: 23
- Joined: Tue Jun 26, 2007 12:00 am
Post
by tangone » Wed Jun 18, 2008 5:41 am
Dear Sir/Madam,
I draw a Bar chart and turn on Marks as below:
Code: Select all
wChart.Chart.Series(i).Marks.Style = Steema.TeeChart.Styles.MarksStyles.Label
That works fine. But when I change it to Line chart:
Code: Select all
wChart.Chart.Series.Add(New Steema.TeeChart.Styles.Line())
The Label disappeared.
Same thing happen to most of the chart styles except Bar/Horizontal Bar/Bar3D (to name a few, if not all).
What happen? How do I put the mark for those chart style?
Thanks.
Rgds,
Stephen
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Wed Jun 18, 2008 8:23 am
Hi Stephen,
This is because, by default, marks are not visible in those series styles. For making they visible you need to use this code:
Code: Select all
wChart.Chart.Series(i).Marks.Visible = true;
-
tangone
- Newbie
- Posts: 23
- Joined: Tue Jun 26, 2007 12:00 am
Post
by tangone » Wed Jun 18, 2008 8:58 am
Hi Narcís,
It works fine now.
Thanks for such quick respond, I appreciate it.
Rgds,
Stephen
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Wed Jun 18, 2008 9:08 am
Hi Stephen,
You're very welcome. I'm glad to hear that helped.