From 67496558d25fae1a3d2fbde10f7b9d8189f6421d Mon Sep 17 00:00:00 2001 From: NanthiniMahalingam Date: Tue, 29 Aug 2023 10:06:06 +0530 Subject: [PATCH] Update read me file. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 52a7a0c..6fd6182 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# How-to-add-custom-axis-label-in-WinUI-SfCartesianChart. +# How to customize the axis labels of WinUI (SfCartesianChart). -This article explains how to add custom axis labels in [WinUI (SfCartesianChart)](https://help.syncfusion.com/winui/cartesian-charts/getting-started). +This article explains how to customize axis labels in [WinUI (SfCartesianChart)](https://help.syncfusion.com/winui/cartesian-charts/getting-started). By customizing the axis labels in a chart, you can display more meaningful and descriptive text along the axes, thereby enhancing the representation of the chart data. The following steps demonstrate this process. -**Step: 1** +## Method: 1 -We can add the custom axis labels by utilizing the [LabelTemplate](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.Charts.ChartAxis.html#Syncfusion_UI_Xaml_Charts_ChartAxis_LabelTemplate) property with the help of a Converter, as shown in the following code snippet. +We can customize the axis labels by utilizing the [LabelTemplate](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.Charts.ChartAxis.html#Syncfusion_UI_Xaml_Charts_ChartAxis_LabelTemplate) property with the help of a Converter, as shown in the following code snippet. **[Xaml]** @@ -64,9 +64,9 @@ public class AxisLabelConverter : IValueConverter ``` -**Step: 2** +## Method: 2 -Additionally, we can add the custom axis label by utilizing the LabelCreated event and the properties of [ChartAxisLabelEventArgs](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.Charts.ChartAxisLabelEventArgs.html), as demonstrated in the provided code snippet. +Additionally, we can modify the axis label by utilizing the LabelCreated event and the properties of [ChartAxisLabelEventArgs](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.Charts.ChartAxisLabelEventArgs.html), as demonstrated in the provided code snippet. **[Xaml]**