Skip to content

Commit fecd568

Browse files
Updated read me and sample file
1 parent cad762c commit fecd568

17 files changed

+72
-451
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# How-to-customize-the-appearance-of-axis-labels-in-WPF-Chart
2-
This sample demonstrate how to customize the appearance of axis labels in WPF Chart.
2+
This sample demonstrate how to customize the appearance of axis labels in [WPF Chart](https://www.syncfusion.com/wpf-controls/charts).
33

44
[WPF SfChart](https://help.syncfusion.com/wpf/charts/getting-started) supports customizing the appearance of the axis labels using the [LabelTemplate](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Charts.ChartAxis.html#Syncfusion_UI_Xaml_Charts_ChartAxis_LabelTemplate) property of the Chart axis with the following steps:
55

@@ -88,7 +88,10 @@ Step 3: Customize the axis labels using `LabelTemplate` property of the Chart ax
8888

8989
![Customize chart axis labels in the WPF Chart](https://user-images.githubusercontent.com/61832185/209123493-97c5a17e-db8a-47cd-a652-1aefe36faf87.png)
9090

91-
## <a name="troubleshooting"></a>Troubleshooting ##
92-
### Path too long exception
93-
If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.
91+
## Troubleshooting
9492

93+
#### Path too long exception
94+
95+
If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.
96+
97+
For more details, refer to the KB on [How to customize the appearance of axis labels in WPF Chart?](https://support.syncfusion.com/kb/article/12176/how-to-customize-the-appearance-of-axis-labels-in-wpf-chart-sfchart)

WPF_SfChart_Customize_AxisLabels/App.config

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Configuration;
1+
using System.Configuration;
42
using System.Data;
5-
using System.Linq;
6-
using System.Threading.Tasks;
73
using System.Windows;
84

95
namespace WPF_SfChart_Customize_AxisLabels
106
{
11-
/// <summary>
12-
/// Interaction logic for App.xaml
13-
/// </summary>
14-
public partial class App : Application
15-
{
16-
}
7+
/// <summary>
8+
/// Interaction logic for App.xaml
9+
/// </summary>
10+
public partial class App : Application
11+
{
12+
}
13+
1714
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Windows;
2+
3+
[assembly: ThemeInfo(
4+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5+
//(used if a resource is not found in the page,
6+
// or application resource dictionaries)
7+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8+
//(used if a resource is not found in the page,
9+
// app, or any theme specific resource dictionaries)
10+
)]

WPF_SfChart_Customize_AxisLabels/ChartModel.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace WPF_SfChart_Customize_AxisLabels
1+
namespace WPF_SfChart_Customize_AxisLabels
82
{
93
public class ChartModel
104
{

WPF_SfChart_Customize_AxisLabels/MainWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
67
xmlns:local="clr-namespace:WPF_SfChart_Customize_AxisLabels"
7-
xmlns:chart="http://schemas.syncfusion.com/wpf"
88
mc:Ignorable="d"
99
Title="MainWindow" Height="450" Width="800">
10+
1011
<Grid>
1112
<Grid.DataContext>
1213
<local:ViewModel />
Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
using System.Windows;
7-
using System.Windows.Controls;
8-
using System.Windows.Data;
9-
using System.Windows.Documents;
10-
using System.Windows.Input;
11-
using System.Windows.Media;
12-
using System.Windows.Media.Imaging;
13-
using System.Windows.Navigation;
14-
using System.Windows.Shapes;
1+
using System.Windows;
152

163
namespace WPF_SfChart_Customize_AxisLabels
174
{
18-
/// <summary>
19-
/// Interaction logic for MainWindow.xaml
20-
/// </summary>
21-
public partial class MainWindow : Window
22-
{
23-
public MainWindow()
24-
{
25-
InitializeComponent();
26-
}
27-
}
28-
}
5+
/// <summary>
6+
/// Interaction logic for MainWindow.xaml
7+
/// </summary>
8+
public partial class MainWindow : Window
9+
{
10+
public MainWindow()
11+
{
12+
InitializeComponent();
13+
}
14+
}
15+
}

WPF_SfChart_Customize_AxisLabels/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.

WPF_SfChart_Customize_AxisLabels/Properties/Resources.Designer.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

WPF_SfChart_Customize_AxisLabels/Properties/Resources.resx

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)