Jump to content
Software FX Community
Upendra Singh

Wrapping of Point Labels of Pie chart

Recommended Posts

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

Share this post


Link to post
Share on other sites

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


Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Guest
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.

Loading...

×
×
  • Create New...