Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Axis Labels and Formatting
posted

I would like to be able to show the X and Y headings on my chart such as my attachment shows.

 I would also like to be able to rotate the years 2008 & 2009 90 degrees so that they are vertical.

 

  • 995
    posted

    Hi,

    You can use following code to rotate labels for X axis for a specific angle or change the Orientation property:

    this.UltraChart1.Axis.X.Labels.Orientation = TextOrientation.Custom;

    this.UltraChart1.Axis.X.Labels.OrientationAngle = -90;

    or

    this.UltraChart1.Axis.X.Labels.Orientation = TextOrientation.VerticalLeftFacing;

    For a custom headings you can create Annotations, graphical elements can be used to provide a visual cue or information supplemental to the existing chart data. For more information refer to here.