Blazor Chart with Smart Axis Labels Example.
Properties
This example demonstrates smart label placement strategies for chart axis labels to prevent overlapping and improve readability.
In this example, you can see how axis labels are intelligently arranged when they overlap using the LabelIntersectAction property on the axis.
The LabelIntersectAction property supports the following options:
- Hide - Hides labels that would intersect
- Trim - Truncates labels at intersection points
- Wrap - Wraps labels to multiple lines
- MultipleRows - Arranges labels in multiple rows for optimal spacing
- Rotate45 - Rotates labels 45 degrees
- Rotate90 - Rotates labels 90 degrees
- None - Displays all labels without modification
Chart edge label placement is managed using the EdgeLabelPlacement property with the following options:
None- No special action is performed on edge labelsHide- Edge labels are hidden from displayShift- Edge labels are shifted for better positioning
More information on smart axis labels can be found in this documentation section.