I have the latest available version of all packages. Below I present the exact number for the Charts:
Syncfusion.SfChart.WPF 19.3.0.56
I have added a chart from XAML (with line descriptions and legend) and I add all series from the code level (
Binded in the MVVM model)
I am trying to change the font size from the code level and in XAML for the legend or axis descriptions but it is completely unresponsive.
It looks as if the function exists but does not perform any task.
The included code works but only for the Header section.
And I need to change the font for the text in Legend and the values on the axes.
Additionally, I note that all Series are added from code
I try to assign a font size in various ways and it is unresponsive
<syncfusion:SfChart.Resources>
<DataTemplate x:Key="itemTemplate">
<Grid>
<TextBlock HorizontalAlignment="Center" FontSize="25" Foreground="Black" Text="{Binding Label}">
</TextBlock>
</Grid>
</DataTemplate>
</syncfusion:SfChart.Resources>
<syncfusion:SfChart.Legend>
<syncfusion:ChartLegend ItemsPanel="{StaticResource itemTemplate}" FontSize="25"/>
</syncfusion:SfChart.Legend>
I was able to solve it, but only by creating a new Style in Resources. Built-in functions for Legend or Labels on the axis like "FontSize ="18"" don't work - nothing happens.