Vertical text within bar of a bar chart?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
betulus
Newbie
Newbie
Posts: 25
Joined: Wed Apr 28, 2004 4:00 am
Location: Britishland

Vertical text within bar of a bar chart?

Post by betulus » Fri May 06, 2005 10:45 am

Hi there,

Is it possible to add vertical labels within each bar on a bar chart? I guess I could use the AfterDraw event of the WebChart, but if I do this there are at least two problems as I see it:

1. How do I workout the width and location of each bar so I can draw a rectangle the correct size to fit each bar.

2. How do I make text flow in a vertical direction? Do I create a rectangle and rotate it for example?

Thanks for any help you may be able to provide.
Matt 8O

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 May 06, 2005 11:15 am

Hi Matt,

You can do it using series marks, just make them visible and set it's angle to 90 or 270. Then you can "play" with marks arrows making them visible or invisible depending on your needs and also setting their length to a positive or negative value deppending on where you want to place your marks.
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

betulus
Newbie
Newbie
Posts: 25
Joined: Wed Apr 28, 2004 4:00 am
Location: Britishland

Post by betulus » Fri May 06, 2005 12:01 pm

Unfortunately I am using the series marks to display the value labels (as percentages) , I guess you can't display the series labels and values at the same time, (but in different places)?!

Matt

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 May 06, 2005 1:46 pm

Hi Matt,

Then you can use Annotation tools. You will find examples on how to use them at the TeeChart features demo and the tutorials, available at the TeeChart program group.
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

betulus
Newbie
Newbie
Posts: 25
Joined: Wed Apr 28, 2004 4:00 am
Location: Britishland

Post by betulus » Mon May 09, 2005 10:08 am

Thanks Narcis, I will give that a go at some point.

Post Reply