How to Prevent X-Axis Label Overlap Using MaximumAxisLabelWidth
When X-axis labels in a Bold Reports chart are too long, they may overlap or extend beyond the chart area, reducing readability. To address this issue, Bold Reports provides the MaximumAxisLabelWidth property, which controls the maximum width allocated to each axis label, enabling proper text wrapping and preventing overlap.
This article explains how to configure the MaximumAxisLabelWidth property to improve chart readability.
Steps to Implement
1. Open Your Report
Open an already created report containing the chart you want to configure and select the chart report item.
2. Navigate to Custom Attributes
Click the Properties icon in the configuration panel on the right side. Scroll down to the Miscellaneous section, locate the Custom Attributes property, and click Set Attribute.
3. Apply the MaximumAxisLabelWidth Property
In the Custom Attributes dialog, add a new entry to define the maximum label width.
- Name:
MaximumAxisLabelWidth - Value: Enter a pixel value (for example,
150).
4. Test the Configuration
Save the changes and preview the report to verify that the axis labels are displayed correctly.
Before Customization :
After Customization
Download the sample report from here.
Conclusion
Using the MaximumAxisLabelWidth custom attribute helps prevent overlapping and improves the readability of long X-axis labels by enabling automatic text wrapping. By adjusting this value, you can achieve a cleaner and more user-friendly chart presentation.