Articles in this section
Category / Section

How to add watermark in WPF Chart (SfChart)?

1 min read

WPF Chart (SfChart) provides watermark support to add text or images to the chart area. You can add the text to chart background using the Content property of Watermark. If you want to set watermark inside the plot area, you can use the HorizontalAlignment and VerticalAlignment properties.


<!--Adds Watermark to Chart-->
    <syncfusion:Watermark HorizontalAlignment="Center" VerticalAlignment="Center">
            <TextBlock Text="Temperature Report" FontSize="60" Foreground="Gray"/>


private void MyChart()
  SfChart chart = new SfChart();
  chart.Watermark.HorizontalAlignment = HorizontalAlignment.Center;
  chart.Watermark.VerticalAlignment = VerticalAlignment.Center;
  chart.Watermark.Content = "Temperature Report";
  chart.Watermark.FontSize = 60;
  chart.Watermark.Foreground = new SolidColorBrush(Colors.Gray);


WPF Chart with Watermark Text


Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied