SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & 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.
Is it possible to render a SciChartSurface instance to an SVG (scalable vector graphics) file? Preferably, I would like to accomplish this without displaying the surface in a window or dialog.
I have working code to render a surface directly to a bitmap.
RenderTargetBitmap bmp = new RenderTargetBitmap(GraphWidth, GraphHeight, 96, 96, PixelFormats.Pbgra32); bmp.Render(this.Surface); BitmapEncoder encoder = new PngBitmapEncoder(); encoder.Frames.Add(BitmapFrame.Create(bmp)); encoder.Save(myFileStream);
Can the same phenomenon be achieved, but with SVG?
Unfortunately, we cannot support export to SVG. At SciChart we have completely re-written the way you render in WPF, replacing slow vector-graphics for fast bitmap-graphics. Going back to SVG would require going back to Vectors, which would be extremely slow.
The best we can offer now is exporting to bitmap. We have a thread on this topic here:
Offscreen SciChart rendering and exporting bug
Please login first to submit.