Pre loader

How to modify XYZ gizmo

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

I would like to modify the XYZ Gizmo in XAML, but I can’t figure out how. What would this code look like?

Version
v7
  • Andrew Burnett-Thompson
    Hi will, modify how? It’s possible to show or hide it, that’s about it. What do you want to achieve?
  • Will Wright
    Hi Andrew, I had found this page https://www.scichart.com/documentation/win/current/webframe.html#SciChart.Charting3D~SciChart.Charting3D.Annotations.XyzGizmo_members.html describing the members of the XyzGizmo class. I was able to modify the colors, but I would also like to modify the text. Currently, attempting to modify the text leads to a rapidly changing string of random characters of random length. To achieve this I used codebehind, where I referenced the Viewport3D root entity children as such. if (sciChart.Viewport3D.RootEntity.Children[1] is SciChart.Charting3D.Annotations.XyzGizmo xyz) { //xyz.LabelYText = “test”; xyz.LabelZText = “Latitude”; xyz.LabelXText = “Longitude”; xyz.LabelZColor = Colors.Magenta; xyz.LabelYColor = Colors.Cyan; xyz.LabelZColor = Colors.Yellow; xyz.LabelsFontSize = 20; xyz.IsDirty = true; xyz.AxisLength = 20; } I will also post an answer with what it looks like when this code is run. I understand that the way I’m currently doing this is not at all intentional. However, if modifying the XyzGizmo is not currently offically supported, I would love for this to be a feature in the future. The default colors and “XYZ” axis labels don’t fit with my application, so if I’m not able to modify them I will just have to turn the gizmo off. Thanks for the quick reply!
  • Lex
    Hi Will, Thank you for the details. I am going to discuss this with the team and will get back to you as soon as I have an update. With best regards, Lex
  • You must to post comments
1
0

Hi Will,

We’ve discussed your inquiry.
Unfortunately, these customizations are not available for SciChart 3D Gizmo currently.
It was designed for our WPF Examples suite and has limited functionality.

We are considering adding more customization options SciChart 3D Gizmo in one of the future SciChart versions and have already logged a new feature request in our tracking system.

We’ll get back to you as soon as we have an update regarding this feature request.

With best regards,
Lex
SciChart Technical Support Engineer

  • You must to post comments
0
0

This is what I was able to achieve.

if (sciChart.Viewport3D.RootEntity.Children[1] is SciChart.Charting3D.Annotations.XyzGizmo xyz)
{
    //xyz.LabelYText = "test";
    xyz.LabelZText = "Latitude";
    xyz.LabelXText = "Longitude";

    xyz.LabelZColor = Colors.Magenta;
    xyz.LabelYColor = Colors.Cyan;
    xyz.LabelZColor = Colors.Yellow;

    xyz.LabelsFontSize = 20;

    xyz.IsDirty = true;
    xyz.AxisLength = 20;
}
Images
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.