Jump to content
Software FX Community

How to align Category labels on Gantt chart?


Recommended Posts

Please look at the attached graph produced from ChartFX7 windows. I need to do 2 things.

(1) As you can see, the category labels are not aligned consistently - there are some "white spaces" at the end on some labels. I need all the labels to be "right-aligned" without any white spaces. How to do this?

(2) Also, is there a way to completely remove step marker "--" on the vertical axis?

 Thanks a lot! I appreciate any help on this.


Link to comment
Share on other sites

1) Try this:

 chart.AxisX.Style |= AxisStyle.FixRightAligned;

 Also, make sure there are no trailing spaces in the strings (labels) that come from your data.

 The flag AxisStyle.FixRightAligned is there to work around a bug measuring strings in GDI+. It may cuase the text to looked less smooth (more jagged).

2) That one's easy:

chart1.AxisX.Grids.Major.TickMark =



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...