SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.


I have basic printing working based on the XPS printing walkthrough. However the legend does not show. I’m not sure what to do about that. Any ideas on how to handle that?

  • You must to post comments

Hi David,

The Legend needs to be in the visual tree of the SciChartSurface in order for SciChartSurface.ExportToBitmapSource() to export it. There are several ways to achieve this:

  1. Include SciChartLegend inside the visual tree of the SciChartSurface by using our LegendModifier.ShowLegend=”True” API.
  2. Include SciChartLegend inside the visual tree of the SciChartSurface by using a CustomAnnotation to host a SciChartLegend control
  3. Export a control higher up the visual tree (e.g. a Grid which contains both SciChartSurface and SciChartLegend) using the WPF RenderToBitmap feature.

I would personally recommend (1) as this is our supported API for printing a legend, and the easiest to achieve, but any of them will work!

For more info on the LegendModifier and SciChartLegend API see here.

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.