Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update read me file. #3

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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