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
325
WinChart X Axis Label MultiLine
posted

Is there a way i can set the X Axis of my Line chart to display the Lables in MultiLIne?

The reason i want to implement this is, becuase my labels on the X-Axis have more than 50 characters, it does'nt fit in the chart boundary, i can't rotatethe labels, i cant reduce the size of the lables and the requirement is to show all the data in one chart, and since the chart currently is emmbeded as an image inside a wingrid cell doesnt help the cause of increasing the height, but yes the widht can be increased as per the requirement. So apart from telling me to put it as horizontal or increase the X Extent, i need some other advice.

 

Thanks

Kartik

Parents
  • 2406
    posted

    Hi Kartik,

    Try using the new line character in your ItemFormatString value. For example the following string will be positioned at three rows:

    this.ultraChart1.Axis.X.Labels.ItemFormatString = "test string \n on more than \n one row";

Reply Children