diff --git a/README.md b/README.md index c375180..8fdb39d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,52 @@ # How-to-add-custom-axis-label-in-WinUI-SfCartesianChart. This sample demonstrates how to add custom axis label in WinUI SfCartesianChart. + +The appearance of the axis labels can be customized by using the LabelTemplate property of axis. + +XAML +``` + +. . . + + + + + + + +. . . + + + + + +``` +![image](https://github.com/SyncfusionExamples/How-to-add-custom-axis-label-in-WinUI-SfCartesianChart/assets/113962276/32127637-bb2e-4618-bf60-e62b91eaf8c5) + +## Smart Axis Labels +When there are more number of axis labels, they may overlap with each other. Chart axis provides support to handle the overlapping axis labels using the LabelsIntersectAction property. By default the LabelsIntersectAction value is Hide. + +| Action | Description | +|-------------|-----------------| +| None | Used to display all the label even if it intersects | +| Hide | Used to hide the labels if it intersects | +| MultipleRows| Used to move the labels to next row if it intersects | +| Auto | Used to rotate the labels if it intersects | + +### Hide + +![image](https://github.com/SyncfusionExamples/How-to-add-custom-axis-label-in-WinUI-SfCartesianChart/assets/113962276/e6c5461f-194a-421a-bda0-dbeb477f2eb7) + +### MultipleRows + +![image](https://github.com/SyncfusionExamples/How-to-add-custom-axis-label-in-WinUI-SfCartesianChart/assets/113962276/4b587eca-b41c-490a-b359-131d25d71e18) + +### Auto + +![image](https://github.com/SyncfusionExamples/How-to-add-custom-axis-label-in-WinUI-SfCartesianChart/assets/113962276/a2f06241-9acb-46d4-bf45-a970d06f014d)