Page 1 of 1

Vertical text within bar of a bar chart?

Posted: Fri May 06, 2005 10:45 am
by 8125254
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

Posted: Fri May 06, 2005 11:15 am
by narcis
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.

Posted: Fri May 06, 2005 12:01 pm
by 8125254
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

Posted: Fri May 06, 2005 1:46 pm
by narcis
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.

Posted: Mon May 09, 2005 10:08 am
by 8125254
Thanks Narcis, I will give that a go at some point.