Show Bars behind each other

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ICS
Newbie
Newbie
Posts: 10
Joined: Wed Sep 22, 2010 12:00 am

Show Bars behind each other

Post by ICS » Thu Nov 18, 2010 9:25 am

Hello
I have a TChart with two Bar-Series. I add the Series Values with bar1.Add(XValue, YValue);
If I have the same xVaue on bar1 and on bar2, it shows the two bars next to each other.
How can I paint the bar2 in front of the bar1 ?? (bar1 has Width = 20 and bar2 has Width = 10, so still both bars ar visible)

I guess it's quite easy, but unfortunally I don't find it out...

Thanks for your help!!

Eric

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

Re: Show Bars behind each other

Post by Sandra » Thu Nov 18, 2010 2:26 pm

Hello Eric,

I think you need change stack Style of Bar as do in next line of code:

Code: Select all

     bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.None;
Could you tell us if previous code works fine for you?

I hope will helps.

Thanks,

ICS
Newbie
Newbie
Posts: 10
Joined: Wed Sep 22, 2010 12:00 am

Re: Show Bars behind each other

Post by ICS » Fri Nov 19, 2010 12:44 pm

Great !! It works.
Thanks a lot!!!
It's easy if you know the right properties... :-)

Post Reply