Page 1 of 1
Xamarin - Custom Axis Zoom bug
Posted: Sun May 14, 2017 8:18 am
by 18380250
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.
Re: Xamarin - Custom Axis Zoom bug
Posted: Mon May 15, 2017 4:07 pm
by 10050769
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
Re: Xamarin - Custom Axis Zoom bug
Posted: Tue May 16, 2017 5:22 am
by 18380250
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.
Re: Xamarin - Custom Axis Zoom bug
Posted: Tue May 16, 2017 9:52 am
by 10050769
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 (45.25 KiB) Viewed 17874 times
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
Re: Xamarin - Custom Axis Zoom bug
Posted: Tue May 16, 2017 2:30 pm
by 18380250
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.
Re: Xamarin - Custom Axis Zoom bug
Posted: Thu May 18, 2017 12:53 pm
by 10050769
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
Re: Xamarin - Custom Axis Zoom bug
Posted: Fri May 19, 2017 4:10 am
by 18380250
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.
Re: Xamarin - Custom Axis Zoom bug
Posted: Fri May 19, 2017 2:26 pm
by 10050769
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