TChart Issues II

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

TChart Issues II

Post by VarMelb » Tue Apr 20, 2010 12:37 am

Hi Support,

rather than append to the previous thread I thought it better to start a new one.

15. The rubber banding for zooming does not display in subcharts. The subcharts do indeed zoom but the user can't see the dashed rectangle of the region to zoom into.

16. The Axes Position property is not updated when thge margin is changed. I assume this will apply to all Axes but I have only confirmed it with the right axis.

17. With a vertical Colorline on a chart and panning the chart in the horizontal direction such that the Colorline reaches the left or right axis (depending on the pan direction) which is expected. With continued panning the vertical Colorline remains at the left or right axis and "slides" along the bottom axis (ie it changes it bottom axis position without the user draging it). This is a very nasty problem for our users. I haven't looked into the TChart code yet but any help (ie a fix!) would be appreciated.

18. With the Cursor tool, the Cursor.OnSnapChange event fires on a MouseMove and the internal Point field "IPoint" is updated when the BroadcastToolEvent "AfterDrawEvent" fires. The problem is that the OnSnapChange method uses IPoint but the AfterDrawEvent happens after the OnSnapChange. Put another way, the X, Y and ValueIndex of the "CursorChangeEventArgs" are for the previous mouse click event. Is this a know problem? I fixed the problem for our use by calling "CalcScreenPositions()" from OnSnapChange().

regards
Mark

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart Issues II

Post by Sandra » Wed Apr 21, 2010 11:26 am

Hello Mark,
15. The rubber banding for zooming does not display in subcharts. The subcharts do indeed zoom but the user can't see the dashed rectangle of the region to zoom into.
I could reproduce your problem and I have added it in bug report list with number [TF02014821]. We will try to fix it for next versions of TeeChart.Net
16. The Axes Position property is not updated when thge margin is changed. I assume this will apply to all Axes but I have only confirmed it with the right axis.
For default, Right axes and Top axes aren't visible, why position don't update. If you want update positions of these axes, you need assign to the axes one series. Please, see next code and check if works as you want.

Code: Select all

        public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }

        private Steema.TeeChart.Styles.Bar bar1,bar2;
        private void InitializeChart()
        {
           bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
           bar2 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
           bar2.FillSampleValues();
           bar1.FillSampleValues();
           bar1.CustomVertAxis = tChart1.Axes.Left;
           bar1.CustomHorizAxis = tChart1.Axes.Bottom;
           bar2.CustomHorizAxis = tChart1.Axes.Top;
           bar2.CustomVertAxis = tChart1.Axes.Right;
           tChart1.Draw();
           int i = tChart1.Axes.Right.Position;//Change top,bottom or Left and debug
           tCharthttp://www.teechart.net/support/posting.php?mode=reply&f=4&t=109981.Panel.MarginRight = 30;
           //tChart1.Panel.MarginLeft = 30;
           //tChart1.Panel.MarginTop = 30;
           //tChart1.Panel.MarginBottom = 30;
           tChart1.Draw();
           int x =tChart1.Axes.Right.Position;//Change top,bottom or Left and debug
        }
17. With a vertical Colorline on a chart and panning the chart in the horizontal direction such that the Colorline reaches the left or right axis (depending on the pan direction) which is expected. With continued panning the vertical Colorline remains at the left or right axis and "slides" along the bottom axis (ie it changes it bottom axis position without the user draging it). This is a very nasty problem for our users. I haven't looked into the TChart code yet but any help (ie a fix!) would be appreciated.
I can not reproduce your problem here, using last version of TeeChart .Net and following code:

Code: Select all

   private Steema.TeeChart.Styles.Bar bar1;
        private Steema.TeeChart.Tools.ColorLine colorLine1;
        private void InitializeChart()
        {
           bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
           bar1.FillSampleValues();
           colorLine1 = new Steema.TeeChart.Tools.ColorLine(tChart1.Chart);
           colorLine1.Axis = tChart1.Axes.Bottom;
           colorLine1.Value = 0;
           colorLine1.Pen.Color = Color.Red;
           //colorLine1.NoLimitDrag = true;
        }
Please, check if previous code works correctly for you. Also, if you don't want limit to drag color line, you can put property NoLimitDrag=true.
18. With the Cursor tool, the Cursor.OnSnapChange event fires on a MouseMove and the internal Point field "IPoint" is updated when the BroadcastToolEvent "AfterDrawEvent" fires. The problem is that the OnSnapChange method uses IPoint but the AfterDrawEvent happens after the OnSnapChange. Put another way, the X, Y and ValueIndex of the "CursorChangeEventArgs" are for the previous mouse click event. Is this a know problem? I fixed the problem for our use by calling "CalcScreenPositions()" from OnSnapChange().
I couldn't reproduce your problem. Please, you could send us a simple project because we can reproduce exactly your problem here?

BTW: For future technical inquiries, would you mind posting each new issue in a different forums thread? This makes easier for other users to search in the forums and for us to follow up and distribute questions to the appropriate person.

Thanks,
Best Regards,
Sandra Pazos / 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

VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

Re: TChart Issues II

Post by VarMelb » Wed Apr 21, 2010 9:33 pm

Hi Sandra,

re: 16 Ok. In the end I used ChartRect to get what I wanted.

re: 17 The Colorline demo does it.
Sure I could use "colorLine1.NoLimitDrag = true;" but then we have the problem of the colorline drawing outside the chart. Either way there are problems with colorline. Use the demo to see the problems.

re: separate thread per issue
I understand your request to use separate threads and normally I do. However, in this case I'm trying to keep the number of threads I have to track to a minimum ie 3 or 4 vs 20+.

regards
Mark

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart Issues II

Post by Sandra » Thu Apr 22, 2010 8:32 am

Hello Mark,
17 The Colorline demo does it.
Sure I could use "colorLine1.NoLimitDrag = true;" but then we have the problem of the colorline drawing outside the chart. Either way there are problems with colorline. Use the demo to see the problems.
Please, you can say exactly which steps we must follow, for reproduce you problem with colorLine here?

Thanks,

VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

Re: TChart Issues II

Post by VarMelb » Thu Apr 22, 2010 9:51 pm

Hi Sandra,

re: 17 Colorline problem

With "No limit drag" = false.

1. run the demo
2. select tools folder
3. select Color Line
4. Note green vertical line at X axis = 10
5. Move mouse cursor into left side of chart and hold right mouse button down
6. With right mouse button down move mouse to the right until the vertical green line has move the the X axis = 5 position
7. Now move mouse (with right button still down) back to the left.
8. Note the vertical green line has changed from X axis = 10 to X axis = 5 without the user actually moving the color line.

Now "No limit drag" = true.
With a new demo session repeat steps 1 - 6 above and note that this time the vertical green moves beyond the chart and into the legend.

I do hope the above steps are clear enough now.

re: 18 problem with Cursor tool OnSnapChange...
I couldn't reproduce your problem. Please, you could send us a simple project because we can reproduce exactly your problem here?
As for your request for an example project that demonstrates the problem more clearly to you I don't have the time to produce one. As it is I have to spend way too much time researching, fixing or explaining TChart issues which costs my company in lost time that could have been used for adding new features. As I said, I have fixed the problem for our use and was just letting Steema know about the problem. Anyway the demo Tools\Cursor\Scope is a good spot to start. Set Snap on and Snap style to vertical and the code needs to be modified to handle the OnSnapChange event. It may be easier to follow by setting break points in the "CalcScreenPositions" and "OnSnapChange" methods in the Cursor.cs file and debug the demo. I hope this helps.

regards
Mark

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart Issues II

Post by Sandra » Fri Apr 23, 2010 11:05 am

Hello Mark,
re: 17 Colorline problem
We couldn't reproduce here your problem using last build 4.0.2009.62332 of TeeChart .Net. Please, if you don't have last version of TeeChart .Net, could you update it. When you have updated your TeeChart .Net build, check if problem still appears.
If it appears, please you could make a video because we can see exactly the problem You could make a video for us with program CamStudio that you can find in this link


As for your request for an example project that demonstrates the problem more clearly to you I don't have the time to produce one. As it is I have to spend way too much time researching, fixing or explaining TChart issues which costs my company in lost time that could have been used for adding new features. As I said, I have fixed the problem for our use and was just letting Steema know about the problem. Anyway the demo Tools\Cursor\Scope is a good spot to start. Set Snap on and Snap style to vertical and the code needs to be modified to handle the OnSnapChange event. It may be easier to follow by setting break points in the "CalcScreenPositions" and "OnSnapChange" methods in the Cursor.cs file and debug the demo. I hope this helps.
I could reproduce your problem and I have added in bug report list with number [TF02014832]. We will try to fix it for next versions of TeeChart .Net
et


Thanks,
Best Regards,
Sandra Pazos / 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

VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

Re: TChart Issues II

Post by VarMelb » Mon Apr 26, 2010 9:30 pm

re: Color Line issue

see attachment. Note, demo was run under Vista and I think the problem is seen under Windows 7 as well.

regards
Mark
Attachments
Color Line.jpg
Color Line.jpg (136.57 KiB) Viewed 13840 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart Issues II

Post by Sandra » Tue Apr 27, 2010 11:31 am

Hello Mark,

I understand that when ColorLine is NoLimitDrag=True, and drag it outside the boundaries of chart, it is painted over of Legend. Could you confirm that is it your problem?

Thanks,
Best Regards,
Sandra Pazos / 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

VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

Re: TChart Issues II

Post by VarMelb » Tue Apr 27, 2010 10:19 pm

Hi Sandra,
I understand that when ColorLine is NoLimitDrag=True, and drag it outside the boundaries of chart, it is painted over of Legend. Could you confirm that is it your problem?
In the case of the demo the answer is 'yes'. However, the generalized case is that the ColorLine is rendered outside the boundaries of the chart when the ColorLine position is beyond the axis limits currently displayed on the chart. I hope this has explained the problem sufficiently.

regards
Mark

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart Issues II

Post by Sandra » Wed Apr 28, 2010 10:53 am

Hello Mark,

Ok, I have added this as a feature request [ TF02014836] to the wish-list to be considered for inclusion in future releases. On the other hand, for now you can do is put NoLimitDrag = false, because this will allow you to control ColorLine that doesn't out the boundaries of chart.

Thanks,
Best Regards,
Sandra Pazos / 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

VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

Re: TChart Issues II

Post by VarMelb » Wed Apr 28, 2010 10:25 pm

Hi Sandra,

your kidding me right?

What you are suggesting I do is the reason I posted the following TChart defect in the first place!
17. With a vertical Colorline on a chart and panning the chart in the horizontal direction such that the Colorline reaches the left or right axis (depending on the pan direction) which is expected. With continued panning the vertical Colorline remains at the left or right axis and "slides" along the bottom axis (ie it changes it bottom axis position without the user draging it). This is a very nasty problem for our users. I haven't looked into the TChart code yet but any help (ie a fix!) would be appreciated.
I appreciate there is a language barrier that can make written descriptions harder to understand but this thread does seem longer than it need be.

regards
Mark

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

Re: TChart Issues II

Post by Narcís » Thu Apr 29, 2010 7:22 am

Hi Mark,

I'm sorry the situation reached this point and I'd like to apologise for that. I have checked this issue together with Sandra and we haven't been able to reproduce what you report here. We have no problem in adding bugs to our bug tracking system and we are willing to help you on this. However, as you may understand, we need to be able ot reproduce them to be debugged and fixed. So, as Sandra already asked, could you please send us a video showing how to reproduce the bug and/or a complete set of instructions on how to do so?

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
Image Image Image Image Image Image
Instructions - How to post in this forum

VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

Re: TChart Issues II

Post by VarMelb » Fri Apr 30, 2010 4:31 am

Hi Sandra & Narcis,

there is little point in me producing a special project to demonstrate this defect when the TChart demo application can easily demonstrate the problem.
Anyway, I have created a screen capture file BUT it is too big as either .avi or .zip and .camrec is not allowed.

In retrospect, I believe it would possibly have been better use of my time to just fix the TChart problem myself.

regards
Mark

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

Re: TChart Issues II

Post by Narcís » Fri Apr 30, 2010 9:02 am

Hi Mark,
there is little point in me producing a special project to demonstrate this defect when the TChart demo application can easily demonstrate the problem.
Ok, I have done a video of the ColorLine demo using latest TeeChart for .NET 2010 release available:

http://www.teechart.net/files/public/su ... e.swf.html

You'd better view this using Internet Explorer.

Is this what you get at your end or this is the behaviour you'd expect from ColorLine tool?
Anyway, I have created a screen capture file BUT it is too big as either .avi or .zip and .camrec is not allowed.
Ok, you can post your files at the upload page. If any file is not supported you can always compress it in a zip package.
In retrospect, I believe it would possibly have been better use of my time to just fix the TChart problem myself.
I'd like to apologise if you feel we are wasting your valuable time. As I said before, we are willing to get to the root of the problem but we haven't been able to reproduce it here as can be seen in the video I have made.
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

VarMelb
Newbie
Newbie
Posts: 31
Joined: Wed Feb 24, 2010 12:00 am

Re: TChart Issues II

Post by VarMelb » Sun May 02, 2010 9:21 pm

Hi Narcis,

I viewed the video and it seems my description of the "ColorLine" problem has not been very clear and I do appreciate that you are sincerely trying to help.

I have uploaded "Demo ColorLine capture.zip".

Hopefully, you will see in my demo that the colorline is NOT moved directly but the chart is panned to the right and then to the left. See my earlier posts for instructions.

regards
Mark

Post Reply