refresh values and change barheight

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tenaris
Newbie
Newbie
Posts: 39
Joined: Fri Mar 02, 2007 12:00 am

refresh values and change barheight

Post by tenaris » Wed May 26, 2010 3:22 pm

Hi All,

I have a horizontal bar that displays values from a database after I click a button. Everything works fine until the button is clicked the second time because no values are displayed in the horizontal bar.

I wonder if I'm missing something that allow me to display values no matter how many times the buttom is clicked. I tried: tChart.Refresh(); but I don't get good result.

Another problem is that the BarHeight changes depending on the values that are displayed. How can I keep barheight property at the same value. For this I have: horizBar.BarHeightPercent = 3000;

Any suggestion to solve these issues..


Thanks in advance!

Dautm
Newbie
Newbie
Posts: 18
Joined: Sat Oct 04, 2003 4:00 am
Location: Dalmine

Re: refresh values and change barheight

Post by Dautm » Wed May 26, 2010 8:14 pm

Who tenaris boy are you?

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: refresh values and change barheight

Post by Yeray » Thu May 27, 2010 11:29 am

Hi tenaris,
tenaris wrote:I have a horizontal bar that displays values from a database after I click a button. Everything works fine until the button is clicked the second time because no values are displayed in the horizontal bar.

I wonder if I'm missing something that allow me to display values no matter how many times the buttom is clicked. I tried: tChart.Refresh(); but I don't get good result.
Try with the CheckDataSource method:

Code: Select all

bar1.CheckDataSource();
tenaris wrote:Another problem is that the BarHeight changes depending on the values that are displayed. How can I keep barheight property at the same value. For this I have: horizBar.BarHeightPercent = 3000;
I think that this is the property you are looking for:

Code: Select all

bar1.CustomBarWidth = 20;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply