Jump to content
Software FX Community

Problem with Bar chart font size


Recommended Posts


We are using the chat control in our dot net windows application. For the bar chart we are setting the Point Labels font and Legend font dynamically. If we are increasing the font size then it is overlapping with each other.

Is there any solution to fixed the issue?

Please let me know. 




Link to comment
Share on other sites

  • 2 weeks later...

Hi,In regard to pointlabels, please note that you can use the Offset property which allows you to customize the point label position by configuring its coordinates. The following code sets the PointLabelOffset to 4 pixels up and 5 pixels to the right:chart1.AllSeries.PointLabels.Offset = new Point(4,5);There is also another object called PointLabelOrganizer (Chart FX 7 only) that supports members to enable developers with built-in features to try and display point labels in the most visual appealing manner. It supports members not only to bring all labels to the front to avoid this issue, but also internal algorithms used to reposition and even hide offending point labels. Additionally, members have been implemented to allow the developer control over acceptable point label collisions, time limits used for organizing and even caching features (Please refer to the Resource Center for more details on how to use it).

As for the legends, please note that you can use the Staggered property which alternates the level of the axis labels for the selected axis labels. Staggering axis labels can help improve chart readability when axis label strings are long. Below, the X axis staggered property is set to true:

chart1.AxisX.Staggered = true;Regards,RandyJ

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