Skip to content

Rotate example for MAUI or it is not working #4

Description

@powerteqtpitman

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions