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
310
UltraCategoryChart XAxisLabelHorizontalAlignment won't align center?
posted

I am trying to align my labels in the center using:

UltraCategoryChart1.XAxisLabelHorizontalAlignment = Alignment.HorizontalCenterAlign

But they are slightly off center. It's not the end of the world, but slightly annoying. Any fix for this?

UltraCategoryChart1.XAxisInterval = 1 
UltraCategoryChart1.XAxisLabelFontSize = 16
UltraCategoryChart1.XAxisLabelLeftMargin = 14
UltraCategoryChart1.XAxisLabelTextColor = New SolidColorBrush(Color.Black)
UltraCategoryChart1.XAxisLabelTextStyle = FontStyle.Bold
UltraCategoryChart1.XAxisLabelVisibility = Infragistics.Portable.Components.UI.Visibility.Visible
UltraCategoryChart1.XAxisLabelHorizontalAlignment = Alignment.HorizontalCenterAlign

Parents
No Data
Reply
  • 5935
    Verified Answer
    Offline posted

    Hello Ted,

    Thank you for your post. Looking onto the code looks like XAxisLabelLeftMargin is causing this behavior, as a test can you comment out XAxisLabelLeftMargin property and check if you got your x Axis labels aligned center ?

    If not then do you have any other margin px set anywhere else in the project ? Can you share you demo sample for testing?

    Sincerly,

    Divya Jain

Children