Skip to content

Commit 5821500

Browse files
saiyathalifathimabee.m@syncfusion.comsaiyathalifathimabee.m@syncfusion.com
authored andcommitted
Updated the legend label style
1 parent b584ab7 commit 5821500

5 files changed

Lines changed: 19 additions & 4 deletions

File tree

ChartControlsThemeDemo/ChartControlsThemeDemo/CartesianChart/CartesianChartDemo.xaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
<chart:SfCartesianChart>
1212

1313
<chart:SfCartesianChart.Legend>
14-
<chart:ChartLegend ToggleSeriesVisibility="True"/>
14+
<chart:ChartLegend>
15+
<chart:ChartLegend.LabelStyle>
16+
<chart:ChartLegendLabelStyle TextColor="{AppThemeBinding Light=Black,Dark=White}"/>
17+
</chart:ChartLegend.LabelStyle>
18+
</chart:ChartLegend>
1519
</chart:SfCartesianChart.Legend>
1620

1721
<chart:SfCartesianChart.Title>

ChartControlsThemeDemo/ChartControlsThemeDemo/CircularChart/CircularChartDemo.xaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
</chart:SfCircularChart.Title>
1818

1919
<chart:SfCircularChart.Legend>
20-
<chart:ChartLegend/>
20+
<chart:ChartLegend>
21+
<chart:ChartLegend.LabelStyle>
22+
<chart:ChartLegendLabelStyle TextColor="{AppThemeBinding Light=Black,Dark=White}"/>
23+
</chart:ChartLegend.LabelStyle>
24+
</chart:ChartLegend>
2125
</chart:SfCircularChart.Legend>
2226

2327
<chart:SfCircularChart.Series>

ChartControlsThemeDemo/ChartControlsThemeDemo/FunnelChart/FunnelChartDemo.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
<chart:SfFunnelChart.Legend>
2121
<chart:ChartLegend Placement="Bottom">
22+
<chart:ChartLegend.LabelStyle>
23+
<chart:ChartLegendLabelStyle TextColor="{AppThemeBinding Light=Black,Dark=White}"/>
24+
</chart:ChartLegend.LabelStyle>
2225
</chart:ChartLegend>
2326
</chart:SfFunnelChart.Legend>
2427

ChartControlsThemeDemo/ChartControlsThemeDemo/PyramidChart/PyramidChartDemo.xaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
</chart:SfPyramidChart.DataLabelSettings>
2323

2424
<chart:SfPyramidChart.Legend>
25-
<chart:ChartLegend/>
25+
<chart:ChartLegend>
26+
<chart:ChartLegend.LabelStyle>
27+
<chart:ChartLegendLabelStyle TextColor="{AppThemeBinding Light=Black,Dark=White}"/>
28+
</chart:ChartLegend.LabelStyle>
29+
</chart:ChartLegend>
2630
</chart:SfPyramidChart.Legend>
2731

2832
<chart:SfPyramidChart.Title>

ChartControlsThemeDemo/ChartControlsThemeDemo/SunburstChart/SunburstChartDemo.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<chart:SfSunburstChart x:Name="sunburstChart" ItemsSource="{Binding SunburstData}"
1313
ValueMemberPath="Sales" ShowLabels="True" PaletteBrushes="{Binding CustomBrush}"
14-
InnerRadius="0.2" EnableTooltip="True">
14+
InnerRadius="0.2">
1515

1616
<chart:SfSunburstChart.Title>
1717
<Label Text="Visual Perspective of Sales Performance"

0 commit comments

Comments
 (0)