SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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 Stackoverflow.com 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 referred to “Offscreen Rendering to Bitmap” topic and was able to save the graph but the legend is not getting saved. Can you please help me with including the legend in the offscreen rendering?
Currently we have placed the legend on a floating canvas so that user can move it around incase the legend grows biggers and obstructs the graph display.
Rendering to bitmap is provided by WPF, not by SciChart, so all you need to do is to place both elements – the chart & the legend – inside a Grid or other UserControl and then render the entire UserControl to bitmap.
Referring to this tutorial: http://http://www.scichart.com/screenshots-xps-printing-x-axis-text-labels/
You should be able to change the signature of this method:
public static BitmapSource ExportToBitmap(this SciChartSurface element)
public static BitmapSource ExportToBitmap(this FrameworkElement element)
and then call ExportToBitmap on any FrameworkElement in your application.
I hope that makes sense!
Please login first to submit.