Printing in WPF Charts (SfChart)

14 Jul 20211 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


You can refer to our WPF Charts feature tour page for its groundbreaking feature representations. You can also explore our WPF Charts example to knows various chart types and how to easily configured with built-in support for creating stunning visual effects.