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
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";
As a follow up if the above solution is not an option for you, you could just use the WrapText property of the Axis labels:
this.ultraChart1.Axis.X.Labels.WrapText = true;