Skip to content

Commit 3024a74

Browse files
author
DevakumarD
authored
Update MainWindow.xaml
1 parent ed96316 commit 3024a74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WinUI_Chart_CustomDataLabel/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<chart:SfCartesianChart.Resources>
1818
<local:BorderColorConverter x:Key="borderColorConverter"/>
19-
<DataTemplate x:Key="dataLabelTemplate">
19+
<DataTemplate x:Key="dataMarkerTemplate">
2020
<Border Height="10" Width="10" CornerRadius="20"
2121
BorderBrush="{Binding Converter={StaticResource borderColorConverter}}"
2222
Background="WhiteSmoke" BorderThickness="2">
@@ -50,7 +50,7 @@
5050
ShowDataLabels="True"
5151
PaletteBrushes="{StaticResource customBrushes}">
5252
<chart:SplineAreaSeries.DataLabelSettings>
53-
<chart:CartesianDataLabelSettings ContentTemplate="{StaticResource dataLabelTemplate}"/>
53+
<chart:CartesianDataLabelSettings ContentTemplate="{StaticResource dataMarkerTemplate}"/>
5454
</chart:SplineAreaSeries.DataLabelSettings>
5555
</chart:SplineAreaSeries>
5656
</chart:SfCartesianChart>

0 commit comments

Comments
 (0)