Axis Label Angles

Charts for WPF Forum

Posted 4 months ago by Mark Tannehill
Version: 24.1.4
Platform: .NET 6
Environment: Windows 11 (64-bit)
Avatar

I have a chart with a Y double axis and a X datetime axis.

Tilting the axis for Y works fine, tilting the axis for X does not work.

  <charts:XYChart.XAxes>
<charts:XYDateTimeAxis LabelAngle="30"  />
</charts:XYChart.XAxes>
<charts:XYChart.YAxes>
<charts:XYDoubleAxis LabelAngle="30" />
</charts:XYChart.YAxes>

Thanks

Comments (1)

Posted 4 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

If you look at the last example in our Charts Axis Ticks QuickStart, you can see that it shows an XYDateTimeAxis on the X-axis and displayed at 45 degrees.

For your scenario, it's difficult to say what's happening without being able to debug a full simple sample.  Please try to look at that sample and see if you are doing anything different.  Such as perhaps the data you are sending to the X-axis aren't DateTime values and it is falling back to some other default axis to display the data?


Actipro Software Support

The latest build of this product (v25.1.0) was released 26 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.