Where FontSize is bound to a slider. My problem is when slider value is changed chart layout is not updated and header text is floating out of the chart control area and is not centered anymore. When window is resized, layout is updated and all looks good then.
HMHemalatha Marikumar Syncfusion Team January 14, 2020 03:55 AM
Hi Ondrej Svoboda,
Greetings from Syncfusion.
We have validated your query and we would like to let you know that currently we don’t have alignment support for ChartAxis Header. By default, the Axis Header aligned from center of corresponding width. So only it’s not aligned properly when dynamically change the FontSize.
You can resolve this by setting the TextAlignment as Center and binding axis ActualWidth value to the TextBlockWidth property. And also, manually positioned the axis Header by override the SfChart to position the same when maximizing and minimizing the window as per in the below code snippet.