RadCartesianChart3d - Reverse Y axis?

3 posts, 0 answers
  1. Joe
    Joe avatar
    85 posts
    Member since:
    Nov 2017

    Posted 30 Nov 2017 Link to this post

    I'm laying out a 3d surface from a heightmap.   I've got all the data in there, and the surface is showing beautifully.  Unfortunately, the Y-axis is now how I want it.   Your 3d Chart does not lay out coordinates as a 2d image might.   When I look at the surface from directly above it, I want it to basically look just like the 2d image that this heightmap was built from. 


    That is, with  X-min on left, X-max on right, Z min far away and Z max closest to the eye,  then I want Y to increase from top to bottom.  Just as it would in any 2d image.  But your 3D chart reverses this.

    I need to invert it but I cannot figure out how.  I tried merely inverting the Y data but that had no effect.  I could not find any sort of "IsInverse" property for the 3d chart axes. 

    What is the best way to achieve what I want?

    Is there any easy way -- like, perhaps, some equivalent ofthe old 2d chart's IsInverse property in the 3d world?

    If not, is there some other way to achieve this?  I did find a similar question for the newer 2d chart:  ( https://www.telerik.com/forums/how-to-reverse-the-y-axis-values ).  I've downloaded it and am looking at it but it relies on events that I cannot find in the 3d world:  Like a "RangeChanged" event.  I'm not sure if I can adapt this to suit my needs.

  2. Martin Ivanov
    Martin Ivanov avatar
    2425 posts

    Posted 05 Dec 2017 Link to this post

    Hello Joe,

    Currently, RadChartView3D doesn't support inversed axes. However, there is a feature request for implementing this logged in our feedback portal. You can follow the feedback item to track the feature's status. At this point there is no mechanism to work around the axis inversion. It is possible to define a custom LabelTemplate for the axis and display fake labels there, but this would require effort to determine the real values in the chart.

    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Joe
    Joe avatar
    85 posts
    Member since:
    Nov 2017

    Posted 05 Dec 2017 in reply to Martin Ivanov Link to this post

    Thanks Martin.  I am finally able to achieve the visual effect I want by using Y data for the X axis and vice versa.  As long as I remember to reverse the labels as well, the imagery at least looks correct, like real world data.
Back to Top