Skip to content

Commit

Permalink
Update read me file.
Browse files Browse the repository at this point in the history
  • Loading branch information
NanthiniMahalingam committed Aug 29, 2023
1 parent d08b77c commit 6749655
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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]**

Expand Down Expand Up @@ -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]**

Expand Down

0 comments on commit 6749655

Please sign in to comment.