Hi
I would like to report a possible bug for the Teechart Xamarin forms.
I found that when there are custom axes, zooming will be broken.
I have reviewed provided Teechart source code and identify a possbile bug in
TeeChart.cs, method OnTouchEvent, Case MotionEventActions.Move
a = (i < 4) ? chart.Axes : chart.Axes;
I think it should be
a = (i < 4) ? chart.Axes : chart.Axes.Custom;
to iterate all the axes.
can you confirm the bug and if possible to include the fix in next release? thank you.
Xamarin - Custom Axis Zoom bug
Re: Xamarin - Custom Axis Zoom bug
Hello yang hcing,
After doing some tests, I would like inform you we can't reproduce the problem you're experiencing using latest TeeChart.Xamarin Forms Build 4.0.2017.27030. Could you please, arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance
After doing some tests, I would like inform you we can't reproduce the problem you're experiencing using latest TeeChart.Xamarin Forms Build 4.0.2017.27030. Could you please, arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance
Best Regards,
Sandra Pazos / 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: 4
- Joined: Mon Mar 06, 2017 12:00 am
Re: Xamarin - Custom Axis Zoom bug
Hi Sandra,
thank you for your quick response.
I am actually building the android project, I have not tested it on IOS yet.
have confirmed the both TeeChart.PCL.Android.dll and TeeChart.PCL.dll used in my project are version 4.0.2017.03270
attached is the requested sample project, you can run it on Android and try to zoom the chart, hopefully you can reproduce the problem
thank you.
thank you for your quick response.
I am actually building the android project, I have not tested it on IOS yet.
have confirmed the both TeeChart.PCL.Android.dll and TeeChart.PCL.dll used in my project are version 4.0.2017.03270
attached is the requested sample project, you can run it on Android and try to zoom the chart, hopefully you can reproduce the problem
thank you.
- Attachments
-
- SampleProject.zip
- (119.23 KiB) Downloaded 910 times
Re: Xamarin - Custom Axis Zoom bug
Hello yang ching,
Firstly, I would like inform you that if you add a custom axis is needed assign it to a series. I have modified the code you sent us because it works properly with custom axes and seems zoom works fine as is shown in image below: Below you find the project: Could you tell us, if you use the above project the zoom works in your end? If not, would be very grateful if you explain us how you expect the zoom behaves.
Thanks in advance
Firstly, I would like inform you that if you add a custom axis is needed assign it to a series. I have modified the code you sent us because it works properly with custom axes and seems zoom works fine as is shown in image below: Below you find the project: Could you tell us, if you use the above project the zoom works in your end? If not, would be very grateful if you explain us how you expect the zoom behaves.
Thanks in advance
Best Regards,
Sandra Pazos / 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: 4
- Joined: Mon Mar 06, 2017 12:00 am
Re: Xamarin - Custom Axis Zoom bug
Hi Sandra,
thank you for your reply.
I have checked the modified project, it works after assigning the custom vertical axis to a series.
however when I tried again with Horizontal Custom Axis, and HorizontalLine Series, it's broken again.
can you check if it's anything wrong with our code below?
tChart1.Series.Add(new Steema.TeeChart.Styles.HorizLine());
tChart1.Series.Add(new Steema.TeeChart.Styles.HorizLine());
tChart1.Series[0].FillSampleValues();
tChart1.Series[1].FillSampleValues();
tChart1.Aspect.View3D = false;
//Additional Custom Axis
var customAxis = new Steema.TeeChart.Axis(true, false, tChart1);
customAxis.Automatic = true;
customAxis.Horizontal = true;
tChart1.Axes.Custom.Add(customAxis);
tChart1[0].HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Bottom;
tChart1[1].CustomHorizAxis = customAxis;
customAxis.AxisPen.Color = Color.Red;
tChart1.Axes.Left.StartPosition = 0;
tChart1.Axes.Left.EndPosition = 100;
customAxis.StartPosition = 0;
customAxis.EndPosition = 100;
customAxis.RelativePosition = 10;
customAxis.PositionUnits = Steema.TeeChart.PositionUnits.Percent;
in our project, we need to have multiple horizontal custom axes, and multiple HorizontalLine series on it. so I tried with horizontal axis and horizontal lines again, attached is the modified sample project, and will appreciate if we can make it work. thank you.
thank you for your reply.
I have checked the modified project, it works after assigning the custom vertical axis to a series.
however when I tried again with Horizontal Custom Axis, and HorizontalLine Series, it's broken again.
can you check if it's anything wrong with our code below?
tChart1.Series.Add(new Steema.TeeChart.Styles.HorizLine());
tChart1.Series.Add(new Steema.TeeChart.Styles.HorizLine());
tChart1.Series[0].FillSampleValues();
tChart1.Series[1].FillSampleValues();
tChart1.Aspect.View3D = false;
//Additional Custom Axis
var customAxis = new Steema.TeeChart.Axis(true, false, tChart1);
customAxis.Automatic = true;
customAxis.Horizontal = true;
tChart1.Axes.Custom.Add(customAxis);
tChart1[0].HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Bottom;
tChart1[1].CustomHorizAxis = customAxis;
customAxis.AxisPen.Color = Color.Red;
tChart1.Axes.Left.StartPosition = 0;
tChart1.Axes.Left.EndPosition = 100;
customAxis.StartPosition = 0;
customAxis.EndPosition = 100;
customAxis.RelativePosition = 10;
customAxis.PositionUnits = Steema.TeeChart.PositionUnits.Percent;
in our project, we need to have multiple horizontal custom axes, and multiple HorizontalLine series on it. so I tried with horizontal axis and horizontal lines again, attached is the modified sample project, and will appreciate if we can make it work. thank you.
- Attachments
-
- SampleProjectMod_HorizontalCustomAxis.zip
- (134.2 KiB) Downloaded 953 times
Re: Xamarin - Custom Axis Zoom bug
Hello yang ching,
Many thanks for the project.
Finally, we can reproduce the problem you're experiencing. I have added it to TeeChart.Net bugzilla tracker to fix it to upcoming versions. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=1865
Feel free to add your mail to the CC list to be automatically notified when an update arrives.
Thanks in advance
Many thanks for the project.
Finally, we can reproduce the problem you're experiencing. I have added it to TeeChart.Net bugzilla tracker to fix it to upcoming versions. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=1865
Feel free to add your mail to the CC list to be automatically notified when an update arrives.
Thanks in advance
Best Regards,
Sandra Pazos / 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: 4
- Joined: Mon Mar 06, 2017 12:00 am
Re: Xamarin - Custom Axis Zoom bug
Hi Sandra,
thank you for the confirmation.
multiple horizontal axes is a requirement in our app, can we have an estimate of when the bug can be fixed roughly? thank you.
thank you for the confirmation.
multiple horizontal axes is a requirement in our app, can we have an estimate of when the bug can be fixed roughly? thank you.
Re: Xamarin - Custom Axis Zoom bug
Hello yang ching,
I see you've added your mail to the ticket so you can be notified when it will be closed.
Thanks in advance
I've incremented the issue priority but I'm afraid I can't tell you a date for this to be fixed.multiple horizontal axes is a requirement in our app, can we have an estimate of when the bug can be fixed roughly?
I see you've added your mail to the ticket so you can be notified when it will be closed.
Thanks in advance
Best Regards,
Sandra Pazos / 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 |