Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate example for MAUI or it is not working #4

Open
powerteqtpitman opened this issue Jul 23, 2024 · 2 comments
Open

Rotate example for MAUI or it is not working #4

powerteqtpitman opened this issue Jul 23, 2024 · 2 comments

Comments

@powerteqtpitman
Copy link

I am updating a Xamarin Forms app to MAUI. I have a surface chart with a rotate tool that works fine on Xamarin Forms.

After updating everything to MAUI and getting the chart to show up the rotate tool doesn't seem to work.

Here is the code:

                _surface1 = new Steema.TeeChart.Styles.Surface();
                _points3D1 = new Steema.TeeChart.Styles.Points3D();
                _tower1 = new Steema.TeeChart.Styles.Tower();
                _rotate1 = new Steema.TeeChart.Tools.Rotate();

                _chart.Chart.Series.Add(_points3D1);
                _chart.Chart.Series.Add(_surface1);
                _chart.Chart.Series.Add(_tower1);
                _chart.Chart.Tools.Add(_rotate1);

                _surface1.IrregularGrid = true; // <-- IMPORTANT ! means X and Z are float

                _surface1.UseColorRange = false;

                // adjust some axes properties...
                _chart.Chart.Axes.Depth.Visible = true;
                _chart.Chart.Axes.Depth.Labels.ValueFormat = "0.#";
                _chart.Chart.Axes.Depth.Increment = 0.2;
                _chart.Chart.Axes.Bottom.Labels.ValueFormat = "0.#";
                _chart.Chart.Axes.Bottom.Increment = 0.1;
                _chart.Chart.Axes.Bottom.Inverted = true;
                _chart.Chart.Axes.Automatic = true;

                // visual properties...
                _chart.Chart.Aspect.Chart3DPercent = 100;
                _chart.Chart.Aspect.Orthogonal = false;
                _chart.Chart.Aspect.Perspective = 50;
                _chart.Chart.Aspect.Rotation = 327;
                _chart.Chart.Aspect.Elevation = 352;
                _chart.Chart.Aspect.Zoom = 70;
                _chart.Chart.Aspect.View3D = true;

                _chart.Chart.Legend.Visible = false;

                _chart.Chart.Panning.Allow = ScrollModes.None;

                _chart.Chart.IOpenGL = true;

                _rotate1.Active = true;
                _rotate1.Style = Steema.TeeChart.Tools.RotateStyles.All;

I couldn't find an example for MAUI, so just used the Xamarin Forms code.

I suspect maybe we need a handler or something else...

@PepJorge
Copy link
Member

We've found a bug related to TeeChart NET for MAUI using the Rotate tool. We'll try to fix it as soon as possible. Problem is that dragging over the Chart is not fired and Chart does not rotate.
We're working on this bug and hope we can add a fix for it asap, here can be found.

@powerteqtpitman
Copy link
Author

Thank you for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants