Bar width

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
May
Newbie
Newbie
Posts: 3
Joined: Fri Aug 24, 2012 12:00 am

Bar width

Post by May » Tue Sep 04, 2012 5:25 pm

I'm having a webchart. I set the width to 1000px. We are adding a different number of bars for different settings. If we add, say 10 bars, the width of the bar is thin. Next time, when we have to add only 2 bars, the width is too thick. Is there anyways, we can set the bar width to be consistent and expand / contract the chart accordingly? Thank you.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Bar width

Post by Sandra » Wed Sep 05, 2012 10:23 am

Hello May,

Exist the property of BarWidthPercent, that allow you to change the width of bar, as you want. Other option is use a CustomBarSeries as do in the TeeChart.Net Demo All Features\Welcome!\Chart styles\Standard\Bar\Bar Size example or taking a look in this thread and try to implement it in WebChart, so, it should work in the same way.

I hope will help.

Thanks,
Best Regards,
Sandra Pazos / 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

Post Reply