Rotate all axis but not labels?

4 posts, 0 answers
  1. Karl-Petter
    Karl-Petter avatar
    4 posts
    Member since:
    Feb 2019

    Posted 27 Feb Link to this post

    Hi,

    I'm evaluating ChartView3D and Telerik UI for a project. We are going to visualise drill holes using it. A hole typically starts at the surface and goes into the ground. My attempt to achieve this was to rotate the whole graph 180 degrees, but doing so rotates also all labels and axis titles, see screendump :(

    Is there any other way I can achieve this? Or can I rotate the graph without rotating the labels/titles? Or could I counter rotate them? Any tips would be appreciated.

    Kind regards,
    Karl-Petter

  2. Dinko
    Admin
    Dinko avatar
    951 posts

    Posted 04 Mar Link to this post

    Hi Karl-Petter,

    Thank you for your interest in our RadChartView3D for WPF and for the provided image.

    I double check this rotation behavior of the labels and they are visualized correctly when the chart is rotated upside down. I think I am missing an additional set-up from your application. Attached to this reply you can find the sample project which I used to test your scenario. To be able to rotate the chart in the described scenario I have set the MaxSecondAngle and MinSecondAngle properties of the Chart3DCameraBehavior. May I ask you to check this project and let me know what I am missing as a code or step to reproduce this on my side.

    I am looking forward to your reply.

    Regards,
    Dinko
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Karl-Petter
    Karl-Petter avatar
    4 posts
    Member since:
    Feb 2019

    Posted 05 Mar in reply to Dinko Link to this post

    Hi,

    thanks for your reply. I updated your project with the transformation that rotates the graph. It is just a very small modification so maybe I was not clear in my explanation. The coordinate system for the graph needs to have the z-axis pointing down so that depth grows positively downwards. Thus I rotated the whole graph but then the labels and titles follow. How can I make them not to rotate?

    Update: Could not attach a zip file. So here is the section of the code I modified:

    01.<telerik:RadCartesianChart3D Palette="{Binding SelectedPalette}"  RenderTransformOrigin="0.5,0.5">
    02.  <telerik:RadCartesianChart3D.RenderTransform>
    03.      <TransformGroup>
    04.          <ScaleTransform/>
    05.          <SkewTransform/>
    06.          <RotateTransform Angle="180"/>
    07.          <TranslateTransform/>
    08.      </TransformGroup>
    09.  </telerik:RadCartesianChart3D.RenderTransform>
    10.  <telerik:RadCartesianChart3D.XAxis>
    11.      <telerik:CategoricalAxis3D Title="Bimonthly"  />
    12.  </telerik:RadCartesianChart3D.XAxis>
  4. Dinko
    Admin
    Dinko avatar
    951 posts

    Posted 07 Mar Link to this post

    Hello Karl,

    Thank you for the attached code snippet. 

    Setting the RenderTransform performed a rotation on the whole control, not on plot area. This is the expected behavior. In order to rotate the series and the label to be position correctly, you can use the Chart3DCameraBehavior behavior of the RadCartesianChart3D. To turn upside down the series you can use the following properties of the camera: MaxSecondAngle, MinSecondAngle, FirstAngle, SecondAngle. You can play with them to adjust the right angle. Check the attached project.

    Regards,
    Dinko
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top