Printing in WPF Charts (SfChart)

4 May 2021 / 1 minute to read

SfChart supports printing that enables you to print the chart. The following method is used to print the chart.


This method will invoke a printing dialog window with set of printing options.

The following code example demonstrates the printing of chart in button click event:

<chart:SfChart x:Name="ExportDemoChart" >


<chart:Watermark Canvas.ZIndex="-1"  HorizontalAlignment="Center" VerticalAlignment="Center">


<TextBlock Text="Climate Report" FontSize="60" Foreground="Gray" Opacity="0.5"></TextBlock>





<chart:CategoryAxis  PlotOffset="20" Header="Month" />



<chart:NumericalAxis Header="Degree ( In Celsius )" 



<!-- Add Series to the Chart-->

<chart:SplineSeries Label="Sports" ItemsSource="{Binding ClimateData}"         

XBindingPath="Month" YBindingPath="Temperature">


<chart:ChartAdornmentInfo  ShowMarker="True" Symbol="Ellipse" 




private void Button_Click_1(object sender, RoutedEventArgs e)




The following image shows the printing dialog window upon invoking print method.

SfChart Printing Dialog Window