Swaping values and series in bar-chart
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
Swaping values and series in bar-chart
Is there an easy way to swap values and series in a bar-chart. For example, if you have 3 series of 10 data point each, change this so that you get 10 series of 3 data point each.
I am doing this manually by adding additional series and then removing old series, but this solution causes some run time errors when done repeatedly.
Before looking at the details of my code, I thought I would check first to see whether a method to do this already exists. (if not, consider this a suggestion for a new feature).
I am doing this manually by adding additional series and then removing old series, but this solution causes some run time errors when done repeatedly.
Before looking at the details of my code, I thought I would check first to see whether a method to do this already exists. (if not, consider this a suggestion for a new feature).
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
I'm afraid there's no method for doing that.
Could you please send us the code you are using so that we can reproduce the problem here?
You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup
Could you also let as know of real situations when this feature should be used so that it can be considered as a feature request?
I'm afraid there's no method for doing that.
Could you please send us the code you are using so that we can reproduce the problem here?
You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup
Could you also let as know of real situations when this feature should be used so that it can be considered as a feature request?
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 |
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
Swapping values
I will try to create a sample application and give you and example of how it can be used.
Normand
Normand
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
Swapping values
I will try to create a sample application and give you and example of how it can be used.
Normand
Normand
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
I sent the SwapSeries.zip file with a simple project that replicated the problem. If you swap series repeatedly, quitting the program will produce an access violation. Obviously, there are a few things I didn't understood.
As for possible applications, then you will see that the example I showed you, one may prefer to compare two profiles of frequencies, or concentrate on specific comparisons. Swapping allows one to easily switch from one view to another.
Normand
As for possible applications, then you will see that the example I showed you, one may prefer to compare two profiles of frequencies, or concentrate on specific comparisons. Swapping allows one to easily switch from one view to another.
Normand
narcis wrote:Hi Normand,
I'm afraid there's no method for doing that.
Could you please send us the code you are using so that we can reproduce the problem here?
You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup
Could you also let as know of real situations when this feature should be used so that it can be considered as a feature request?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
Thanks for the example.
I haven't been able to arise the AV you reported. I swapped series for over one hundred times and closing the app. without getting it. Should I proceed in any specific way?
BTW: Which are the things you don't understand? And which TeeChart version are you using? Please notice that latest version availble is v7.04.
Thanks for the example.
I haven't been able to arise the AV you reported. I swapped series for over one hundred times and closing the app. without getting it. Should I proceed in any specific way?
BTW: Which are the things you don't understand? And which TeeChart version are you using? Please notice that latest version availble is v7.04.
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 |
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
It would be better if you also install Delphi 7 upgrade.
It would be better if you also install Delphi 7 upgrade.
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 Normand,
I forgot to tell you that CrossTab charts support swap feature as you can see in the features demo example (All Features\Welcome\Database Charts\CrossTab Charts). You'll find the features demo at the TeeChart program group.
I forgot to tell you that CrossTab charts support swap feature as you can see in the features demo example (All Features\Welcome\Database Charts\CrossTab Charts). You'll find the features demo at the TeeChart program group.
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 |
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
It's very difficult to guess without being able to reproduce it. I've tested it again without getting the AV. Do you know of any specific proceeding way we should follow to reproduce the problem here?
BTW: On which environment are you running the application? I'm using Delphi 7 Enterprise (Build 8.1) on a Pentium IV 3,2 MHz machine with 1GB RAM, nVidia GeForce FX 5700 256 MB graphic card and Windows 2003 Server Enterprise + SP1 on it.
It's very difficult to guess without being able to reproduce it. I've tested it again without getting the AV. Do you know of any specific proceeding way we should follow to reproduce the problem here?
BTW: On which environment are you running the application? I'm using Delphi 7 Enterprise (Build 8.1) on a Pentium IV 3,2 MHz machine with 1GB RAM, nVidia GeForce FX 5700 256 MB graphic card and Windows 2003 Server Enterprise + SP1 on it.
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 |
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
Ok! I have Delphi 7 professional (build 8.1), a Pentium IV, 3,0 Mhz, with 1.25 Gig RAM, nVidia GeoForce FX 5200 (Windows XP with SP1).
I will upload the ZIP file again, but this time I will include the EXE file. Running it outside the IDE and swaping a few times is enough to create this error. If you can't replicate the problem, my computer is at fault, but if you can, then the source of the problem is in the compiler. I don't want to reinstall from scratch, but I can try to disable as much third party components as I can.
Normand
I will upload the ZIP file again, but this time I will include the EXE file. Running it outside the IDE and swaping a few times is enough to create this error. If you can't replicate the problem, my computer is at fault, but if you can, then the source of the problem is in the compiler. I don't want to reinstall from scratch, but I can try to disable as much third party components as I can.
Normand
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
Thanks for posting again your project. Running your .exe I didn't get the error you reported, however when closing the application I get:
Error 1:
---------------------------
Normand mychart: Normand MyChart.exe - Application Error
---------------------------
The instruction at "0xfff40000" referenced memory at "0xfff40000". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------
Error 2:
---------------------------
Application Error
---------------------------
Exception EAccessViolation in module Normand MyChart.exe at FFF3F000.
Access violation at address FFF40000. Read of address FFF40000.
---------------------------
OK
---------------------------
If I compile the application on my machine I don't get those errors. I've posted the .exe I've created at the newsgroups so that you can test it on your machine and check if it works fine for you or do you get the error you reported.
Thanks for posting again your project. Running your .exe I didn't get the error you reported, however when closing the application I get:
Error 1:
---------------------------
Normand mychart: Normand MyChart.exe - Application Error
---------------------------
The instruction at "0xfff40000" referenced memory at "0xfff40000". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------
Error 2:
---------------------------
Application Error
---------------------------
Exception EAccessViolation in module Normand MyChart.exe at FFF3F000.
Access violation at address FFF40000. Read of address FFF40000.
---------------------------
OK
---------------------------
If I compile the application on my machine I don't get those errors. I've posted the .exe I've created at the newsgroups so that you can test it on your machine and check if it works fine for you or do you get the error you reported.
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 |
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
Things are getting quite strange. I installed on a new computer Delphi 7 from the installation CD and then the upgrade for build 8.1.
I then installed TeeChart Pro 7.0.
I compile the MyChart project and still get the same error message as I get on my other computer.
Any idea what may be going wrong?
I then installed TeeChart Pro 7.0.
I compile the MyChart project and still get the same error message as I get on my other computer.
Any idea what may be going wrong?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
Did you test the .exe I posted?
Did you test the .exe I posted?
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 |