locked
Text Alignment of Axis Labels RRS feed

  • Question

  • Is there a way to set the text alignment of axis labes? It looks like it centers the text by default, but I'd like to be able to change that to left or right justify. Thanks!
    Tuesday, April 21, 2009 6:22 PM

Answers

  • Currently Chart aligns Axis labels to center explicitly and there is no easy way to change label alignment. You can use custom labels programmatically and specify FromPosition and ToPosition values, but you’ll need to measure the size of each label to calculate these values.
    You can also send us a feature request here: http://connect.microsoft.com/VisualStudio/

    Regards,
    Krisztian

    Wednesday, April 22, 2009 10:18 PM

All replies

  • Currently Chart aligns Axis labels to center explicitly and there is no easy way to change label alignment. You can use custom labels programmatically and specify FromPosition and ToPosition values, but you’ll need to measure the size of each label to calculate these values.
    You can also send us a feature request here: http://connect.microsoft.com/VisualStudio/

    Regards,
    Krisztian

    Wednesday, April 22, 2009 10:18 PM
  • Thanks, I'll submit a feature request.
    Thursday, April 23, 2009 3:40 PM