Xamarin - Custom Axis Zoom bug

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
yang ching
Newbie
Newbie
Posts: 4
Joined: Mon Mar 06, 2017 12:00 am

Xamarin - Custom Axis Zoom bug

Post by yang ching » Sun May 14, 2017 8:18 am

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.

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

Re: Xamarin - Custom Axis Zoom bug

Post by Sandra » Mon May 15, 2017 4:07 pm

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
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

yang ching
Newbie
Newbie
Posts: 4
Joined: Mon Mar 06, 2017 12:00 am

Re: Xamarin - Custom Axis Zoom bug

Post by yang ching » Tue May 16, 2017 5:22 am

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.
Attachments
SampleProject.zip
(119.23 KiB) Downloaded 901 times

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

Re: Xamarin - Custom Axis Zoom bug

Post by Sandra » Tue May 16, 2017 9:52 am

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:
Xamarin.FormsZoom.png
Xamarin.FormsZoom.png (45.25 KiB) Viewed 17881 times
Below you find the project:
SampleProjectMod.zip
(108.58 KiB) Downloaded 919 times
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
Image Image Image Image Image Image
Instructions - How to post in this forum

yang ching
Newbie
Newbie
Posts: 4
Joined: Mon Mar 06, 2017 12:00 am

Re: Xamarin - Custom Axis Zoom bug

Post by yang ching » Tue May 16, 2017 2:30 pm

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.
Attachments
SampleProjectMod_HorizontalCustomAxis.zip
(134.2 KiB) Downloaded 935 times

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

Re: Xamarin - Custom Axis Zoom bug

Post by Sandra » Thu May 18, 2017 12:53 pm

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
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

yang ching
Newbie
Newbie
Posts: 4
Joined: Mon Mar 06, 2017 12:00 am

Re: Xamarin - Custom Axis Zoom bug

Post by yang ching » Fri May 19, 2017 4:10 am

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.

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

Re: Xamarin - Custom Axis Zoom bug

Post by Sandra » Fri May 19, 2017 2:26 pm

Hello yang ching,
multiple horizontal axes is a requirement in our app, can we have an estimate of when the bug can be fixed roughly?
I've incremented the issue priority but I'm afraid I can't tell you a date for this to be fixed.
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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply