This is a migrated thread and some comments may be shown as answers.

RadCartesianChart3d - Reverse Y axis?

2 Answers 206 Views
ChartView3D
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
Joe asked on 30 Nov 2017, 06:48 PM

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 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Dec 2017, 12:17 PM
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.

Regards,
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.
0
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 05 Dec 2017, 04:08 PM
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.
Tags
ChartView3D
Asked by
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Martin Ivanov
Telerik team
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or