Page 1 of 1

bar chart / bar width

Posted: Thu Oct 27, 2005 7:00 pm
by 9340187
how do we set the width of the bars in a bar chart?
Than ks,

Jennifer

Posted: Fri Oct 28, 2005 9:48 am
by narcis
Hi Jennifer,

Use:

Code: Select all

Series2.BarWidthPercent:=30;

bar width

Posted: Sun Oct 30, 2005 7:41 pm
by 9340187
This does not appear to set the bar width the way we want, but
setting histseries.custombarwidth:=x comes closer. what we cannot find is the units for the custombarwidth. For exzmple, if we
have 10 bars and want to show them spread out across
min,max for the series, how do we set this so the bars would span
the chart showing 10 bars and 50% bar width.?

Thanks,
Jen

Posted: Wed Nov 02, 2005 9:18 am
by narcis
Hi Jen,

CustomBarWidth units are pixels.

I'm afraid I don't understand exactly what you are trying to get but for what I understand, I'd say just setting BarWidthPercent to 50 is enough as this is default's behaviour.

If you wished to calculate some custom pixel ratio you could use CustomBarWidth and get axis width in pixels using Chart1.Axes.Bottom.IAxisSize.

If my answer doesn't help you could you please be more specific or send us an image so that we can figure out your needs? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.