Upendra Singh Posted September 23, 2013 Report Share Posted September 23, 2013 Hi, I want to wrap the point lables of Pie chart in case of long text. for Example " Cash and Cash Equivalents: 20%" needs to be displayed in 2 lines as shown below: "Cash and Cash Equivalents: 20%" please let me know how can i do this. Thanks, Upendra Quote Link to comment Share on other sites More sharing options...
Z95 Posted September 24, 2013 Report Share Posted September 24, 2013 Hi Upendra Try use the follow: StringBuilder strToolTip = new StringBuilder(); strToolTip.Append("Cash and Cash"); strToolTip.Append("\n[/font]Equivalents: %p%%"); _chart1.ToolTipFormat = strToolTip.ToString(); The %p will display the percentage, and the \n will start as new line. set this string on ToolTipFormat property Good luck Z Quote Link to comment Share on other sites More sharing options...
Upendra Singh Posted May 1, 2014 Author Report Share Posted May 1, 2014 Thanks, I have another query related to point labels only: Chart has 2 adjacent point labels getting wrapped in two lines, labels are displayed but label text is overlapping. Can anyone suggest how can we manage the space between two point labels. Also I want to attach sample image of the chart with the question but unable to do that here. Thanks, Upendra Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.