Articles in this section
Category / Section

How to wrap text in multi-level Axis Labels in UWP Chart?

This article explains how to wrap text within multi-level axis labels in the UWP Chart control.

To wrap the text of multi-level axis labels, you can insert explicit line breaks within the Text property of the ChartMultiLevelLabel. This ensures that the text breaks at desired locations, making long labels more readable.

<chart:SfChart.PrimaryAxis> 
        <chart:CategoryAxis > 
                <chart:CategoryAxis.MultiLevelLabels> 
                        <chart:ChartMultiLevelLabel Start="-0.5"   
                       End="2.5"                                          
                       Text="Quater 1.1 
                             Quater 1.2  
                             Quater 1.3" /> 
. . . 
               </chart:CategoryAxis.MultiLevelLabels> 
      </chart:CategoryAxis> 
</chart:SfChart.PrimaryAxis>

Output

 

This output image illustrates wrapping the multi-level axis labels’ text

 

Conclusion

I hope you enjoyed learning how the text on multi-level axis labels in a UWP chart can be wrapped.

You can refer to our UWP Chart feature tour page to know about its other groundbreaking feature representations. You can also explore our UWP Chart documentation to understand how to present and manipulate data. 

For current customers, you can check out our UWP components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our UWP Chart and other UWP components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied