Zooming by code on a date range

TeeChart for ActiveX, COM and ASP
Guilz
Newbie
Newbie
Posts: 46
Joined: Mon Nov 13, 2006 12:00 am

Re: Zooming by code on a date range

Post by Guilz » Mon Sep 28, 2009 1:09 pm

Thanks Yeray but It does not work.
Look at my example:
MaxVisbileValue does not return the current Max Value of my visible graph (zoomed). It return 66.61 instead of 66.29

Guilz
Attachments
t3.jpg
t3.jpg (116.62 KiB) Viewed 6128 times

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

Re: Zooming by code on a date range

Post by Yeray » Mon Sep 28, 2009 1:42 pm

Hi Guilz,

Have you called the function

Code: Select all

tChart1.Environment.InternalRepaint
before looking at the value at MaxVisbileValue?

Could you please send us a simple example project we can run as-is to reproduce the problem here? Thanks in advance.
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

Guilz
Newbie
Newbie
Posts: 46
Joined: Mon Nov 13, 2006 12:00 am

Re: Zooming by code on a date range

Post by Guilz » Mon Sep 28, 2009 2:26 pm

Yeray,

Yes I use the

Code: Select all

tChart1.Environment.InternalRepaint
function before.
I build a new sample projet and it is working like a charm :twisted:
I don't understand why it is not working in my 'big' project...Now, I must compare the 2 projects to find the differences.

Thks a lot for your help :wink:

Guilz

Guilz
Newbie
Newbie
Posts: 46
Joined: Mon Nov 13, 2006 12:00 am

Re: Zooming by code on a date range

Post by Guilz » Mon Sep 28, 2009 2:32 pm

found it !

Not working if we use

Code: Select all

TChart1.Series(0).XValues.Order = loNone
I use this code because I found it in your tutorial about how to increase performance in Real Time.
Not compatible with what I'm looking for :mrgreen:

Regards,

Guilz

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Zooming by code on a date range

Post by Narcís » Mon Sep 28, 2009 2:33 pm

Hi Guilz,

That's probably because you need to set it before populating your series.
Best Regards,
Narcís Calvet / 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

Guilz
Newbie
Newbie
Posts: 46
Joined: Mon Nov 13, 2006 12:00 am

Re: Zooming by code on a date range

Post by Guilz » Mon Sep 28, 2009 2:43 pm

Not working even if done (adding

Code: Select all

TChart1.Series(0).XValues.Order = loNone
after populating my series...

Not a problem for me, working fine without :D

Thks Narcis, and the Teechart support team is very dynamic, it is a pleasure to work with :wink:

Guilz

Post Reply