Issues with TeeChart MAUI
Posted: Tue Jan 30, 2024 10:59 pm
I've been trying to update apps from Xamarin to Maui. I've run into several issues:
The Left Axis Title Caption doesn't put the caption in the right place. It appears to be put the caption at location 0,0 which results in it not appearing on the chart at all. I came up with a work-around that puts it where I want (disabling autolocation) , but the behavior is still very strange. Even using manual location parameters, the draw function changes the location parameters every time it is run.
The Zoom and Panning mouse button settings don't work because the mouse event button parameter always shows the button as "left" no matter which button is pressed. This makes it impossible to use zooming and panning features at the same time.
Panning doesn't work right. the chart image jumps around after the first panning operation. It's as if the chart's click location is confused about where the mouse was clicked.
Zoom and Panning functions don't work correctly on Android and IOS devices. No matter how you set Zoom and Panning direction parameters, for example, Android and IOS devices end up using "both" for the direction parameters. Also, panning still has the above-mentioned issue.
To test all this out I modified the LineChart xaml and xaml.cs files from the TeeChart.Maui.Demo project (files attached) to show these issues. I embedded comments that should make testing self-explanatory. It may only work with Windows (I was unable to run the project on Android). I am able to run the app I am updating on IOS and Android and was able to discover the issues related to those platforms.
The app I am trying to update is fairly complex and I was able to update other chart functions without too much effort. These other issues, however, I can't figure how to resolve. I managed to work arounf the Left Axis Caption issue, but I'm concerned that some of these issues are caused by various functions overwriting the wrong variables, or something like that.
Are there any plans to update the TeeChart MAUI product to resolve these issues, assuming they are indeed bugs and not because I'm using the product incorrectly. The app I'm updating worked like a charm with iOS compiled with Xamarin.
The Left Axis Title Caption doesn't put the caption in the right place. It appears to be put the caption at location 0,0 which results in it not appearing on the chart at all. I came up with a work-around that puts it where I want (disabling autolocation) , but the behavior is still very strange. Even using manual location parameters, the draw function changes the location parameters every time it is run.
The Zoom and Panning mouse button settings don't work because the mouse event button parameter always shows the button as "left" no matter which button is pressed. This makes it impossible to use zooming and panning features at the same time.
Panning doesn't work right. the chart image jumps around after the first panning operation. It's as if the chart's click location is confused about where the mouse was clicked.
Zoom and Panning functions don't work correctly on Android and IOS devices. No matter how you set Zoom and Panning direction parameters, for example, Android and IOS devices end up using "both" for the direction parameters. Also, panning still has the above-mentioned issue.
To test all this out I modified the LineChart xaml and xaml.cs files from the TeeChart.Maui.Demo project (files attached) to show these issues. I embedded comments that should make testing self-explanatory. It may only work with Windows (I was unable to run the project on Android). I am able to run the app I am updating on IOS and Android and was able to discover the issues related to those platforms.
The app I am trying to update is fairly complex and I was able to update other chart functions without too much effort. These other issues, however, I can't figure how to resolve. I managed to work arounf the Left Axis Caption issue, but I'm concerned that some of these issues are caused by various functions overwriting the wrong variables, or something like that.
Are there any plans to update the TeeChart MAUI product to resolve these issues, assuming they are indeed bugs and not because I'm using the product incorrectly. The app I'm updating worked like a charm with iOS compiled with Xamarin.