Some issues for VBScript graphs
Some issues for VBScript graphs
1. How can I "freeze" vertical scroll for TeeChart VBScript graphs? I have tried standart delphi parameters, but they did not work.
2. Is it possible on-line ON/OFF series on TeeChart VBScript graphs (by using ticks for example)?
Regards,
Danila.
2. Is it possible on-line ON/OFF series on TeeChart VBScript graphs (by using ticks for example)?
Regards,
Danila.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Danila,
Please find below the answers to your questions:
1. You can try using this:
Or this:
You'll find all constants definitions at TeeChartDefines.h available at C:\Program Files\Steema Software\TeeChart Pro v8 ActiveX Control\Examples\Visual C++.
2. Yes, you can use legend checkboxes:
Please find below the answers to your questions:
1. You can try using this:
Code: Select all
TChart1.Scroll.Enable = pmVertical
Code: Select all
TChart1.Scroll.Enable = 2
2. Yes, you can use legend checkboxes:
Code: Select all
TChart1.Legend.CheckBoxes = True
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi, Narcís
Thank you for fast and useful answers.
But my scroll is still work when I use
Namely, vertical scroll. How can I "freeze" vertical scroll oh graph? I.e. How can I set "NO" vertical scroll.
I'm using TeeChart 8 (VBScript) and IExplorer 7 (Win XP home edition).
And one more question:
Is it possible to change color of "zooming rectangle" on black? Becouse white rectangle on the white background is invisible.
Thanks in advance,
Danila.
Thank you for fast and useful answers.
But my scroll is still work when I use
Code: Select all
Chart1.Scroll.Enable = pmNone
I'm using TeeChart 8 (VBScript) and IExplorer 7 (Win XP home edition).
And one more question:
Is it possible to change color of "zooming rectangle" on black? Becouse white rectangle on the white background is invisible.
Thanks in advance,
Danila.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Danila,
Have you tried using this?
If the problem persists please send us a simple example project we can run "as-is" to reproduce the problem here.
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Have you tried using this?
Code: Select all
TChart1.Scroll.Enable = 1
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Yes, you can do this:And one more question:
Is it possible to change color of "zooming rectangle" on black? Becouse white rectangle on the white background is invisible.
Code: Select all
TChart1.Zoom.Pen.Color = vbBlack
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
I have question about AddArray. I try to use it for the graph with "date" X-scale.
The following code does not work properly:
How can I plot the graph with "date" X scale using AddArray?
Thanks in advance,
Danila.
The following code does not work properly:
Code: Select all
xa =Array( DateValue("30.05.1982"), DateValue("31.05.1982"), DateValue("01.06.1982"), DateValue("01.07.1982"), DateValue("01.08.1982"), DateValue("01.09.1982"), DateValue("01.10.1982"), DateValue("01.11.1982"), DateValue("01.12.1982"), DateValue("01.02.1983"))
ya =Array( 0, 0, 0, 11.7458, 16.6664, 28.1098, 40.4745, 40.4745, 23.8088, 40.0495)
Chart1.Series(0).AddArray 10, xa, ya
Thanks in advance,
Danila.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Danila,
It works fine for me here using something like this:
BTW: Would you mind starting a new thread when you post about a new subject?
Thanks in advance.
It works fine for me here using something like this:
Code: Select all
Private Sub Form_Load()
TChart1.Series(0).XValues.DateTime = True
xa = Array(DateValue("1/11/2007"), DateValue("2/11/2007"), DateValue("3/11/2007"), _
DateValue("4/11/2007"), DateValue("5/11/2007"))
ya = Array(0, 0, 0, 11.7458, 16.6664)
TChart1.Series(0).AddArray 5, ya, xa
End Sub
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Danila,
Thanks for the example project.
Thanks for the example project.
Ok, I didn't knew you ment scrolling using the mouse wheel. In that case your problem is the same described here. I've tried solution suggested there with your example and works fine for me.The issue is: when I scroll the page with the mouse wheel, the chart also scrolling up and down. But I want to "freeze" such movement of the chart.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |