Problems Editing a TeeChart Office file
Problems Editing a TeeChart Office file
My users export TeeCharts from my Delphi App to a *.tee file. They then want to edit the chart data (ususally to add an x,y pair). When it only has a single series, all goes as expected, they can add new x and y values. However, when there are multiple series, which is almost always the case, editing data, or even adding a new x,y pair produces extremely wierd results. For instance, it copies an earlier point, adds new points at the beginning,etc. (I have the latest version of TeeChart Office.)
How do I allow my users to edit/add data points in this situation?
Thanks
How do I allow my users to edit/add data points in this situation?
Thanks
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi CAC,
I haven't been able to reproduce the issue here. Could you please send us a simple example project we can run "as-is" or a sample .tee file and let us know the exact steps we should follow to reproduce the issue here?
Thanks in advance.
I haven't been able to reproduce the issue here. Could you please send us a simple example project we can run "as-is" or a sample .tee file and let us know the exact steps we should follow to reproduce the issue here?
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 Craig,
Sorry for not posting our file upload options. You can send your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Sorry for not posting our file upload options. You can send your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
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 |
1.
2. I also allow my users to play with data outside my programs using TeeChartOffice. There are many shortcomings in TeeChartOffice but I never met one you have described. I think you need to better describe your problem.
3.
One is distributed as free stand-alone application from http://www.teechart.net/files/teecharto ... Office.zip (I'll call it TeeChartOffice Free), another one is included into installation and is BPL-dependent and the last one is again standalone application available for download from http://www.steema.com/files/vcl/public/ ... Office.zip.
To me the main difference TeeChartOffice Free do includes ADO support (in demo it depends from conditional compilation). Also it might be compiled with TeeChart v.7.
Latest demo from TeeChart v8.02 contain significant BUG - they do not allow add new series to a Chart producing a message "List index out of bounds (-1)"! So far I had no time to investigate difference in the source code of TeeChart Office.
Try your luck with SaveChartToFile and with IncludeData as Falseis there a way to store my user original setup of the TeeChart so that they can bring it up again?
2. I also allow my users to play with data outside my programs using TeeChartOffice. There are many shortcomings in TeeChartOffice but I never met one you have described. I think you need to better describe your problem.
3.
There are few slightly different versions of TeeChartOffice.I have the latest version of TeeChart Office
One is distributed as free stand-alone application from http://www.teechart.net/files/teecharto ... Office.zip (I'll call it TeeChartOffice Free), another one is included into installation and is BPL-dependent and the last one is again standalone application available for download from http://www.steema.com/files/vcl/public/ ... Office.zip.
To me the main difference TeeChartOffice Free do includes ADO support (in demo it depends from conditional compilation). Also it might be compiled with TeeChart v.7.
Latest demo from TeeChart v8.02 contain significant BUG - they do not allow add new series to a Chart producing a message "List index out of bounds (-1)"! So far I had no time to investigate difference in the source code of TeeChart Office.
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009
I sent along an example file fro review, but haven't heard anything yet
Some more details that may help...The charts are made with line series. Each series contains different Y values (Water level elevations) and commonly different x values (dates).
In TeeChart Office, when I click on the Data tab, I am presented with all of my X and Y data pairs. In my example case, my first series has 30 x,y pairs and my second series has 27 x,y pairs. When I try to add a 28th pair to the second series this is what happens:
On posting the values, it get rid of the x,y pair above it and inserts a new x,y pair at the top of the series with the values of 1/27/1900 and 0 as the x,y pair.
If I try to add a new pair in the first series that has the 30 values by using the down arrow, it copies the x,y pairs into the new location adds new dates at the top with sequencial days beginning, in this case 1/30/1900, 1/31/1900, 2/1/1900, etc.
If I want to delete a single x,y pair, the delete button on the navigator deletes data from both series at once....also annoying.
Does this help?
Some more details that may help...The charts are made with line series. Each series contains different Y values (Water level elevations) and commonly different x values (dates).
In TeeChart Office, when I click on the Data tab, I am presented with all of my X and Y data pairs. In my example case, my first series has 30 x,y pairs and my second series has 27 x,y pairs. When I try to add a 28th pair to the second series this is what happens:
On posting the values, it get rid of the x,y pair above it and inserts a new x,y pair at the top of the series with the values of 1/27/1900 and 0 as the x,y pair.
If I try to add a new pair in the first series that has the 30 values by using the down arrow, it copies the x,y pairs into the new location adds new dates at the top with sequencial days beginning, in this case 1/30/1900, 1/31/1900, 2/1/1900, etc.
If I want to delete a single x,y pair, the delete button on the navigator deletes data from both series at once....also annoying.
Does this help?
I can confirm that the issue with appending Series data do exists in TeeChart, it seems that TeeChartGrid.pas has a problem. I played also with Data Source and Data tabs in Chart Editor. Instead appending data it inserts some intermediate X values.
To CAC: I do not belong to Steema and is a simple user of TeeChart as you. I advise you to use Data Source as it allows more naturally hanlde series with different amount of values.
To CAC: I do not belong to Steema and is a simple user of TeeChart as you. I advise you to use Data Source as it allows more naturally hanlde series with different amount of values.
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009
I can't really connect to the data source. My application uses a client-server database. The data source that provided the results for the chart is a query built by a particular user as he/she progresses through a wizard. The query is replaced as other users proceed through the wizard, making their own choices.
Typically, a user may want to add a point once a quarter or monthly, something like that. So instead of totally recreating the chart's titles, colors, fonts, etc., editing the chart's data to add a point or two looked very appealing to my users.
Typically, a user may want to add a point once a quarter or monthly, something like that. So instead of totally recreating the chart's titles, colors, fonts, etc., editing the chart's data to add a point or two looked very appealing to my users.
I have found the reason of issue is function TTeeGallery.SelectedPaletteIndex:Integer; which fails if user did not select any theme and respective uninitialized ComboBox ItemIndex is -1.Latest demo from TeeChart v8.02 contain significant BUG - they do not allow add new series to a Chart producing a message "List index out of bounds (-1)"! So far I had no time to investigate difference in the source code of TeeChart Office.
In previous version of TeeChartOffice demo there is no bug in the same situation. However, I didn't save previous versions of TeeChart sources to see the difference.
So, appearent workaround is to initialize that ComboBox but may be the problem is deeper.
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009