Pre loader

Render SciChartSurface to SVG

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

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?

  • You must to post comments
1
0

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

  • You must to post comments
0
0

Update

SciChart v5.x supports exporting to XPS (a vector format) as well as PNG, Bitmap, JPEG.

We have a feature request in our features request system to export the chart to SVG. You can vote for it here:

https://features.scichart.com/app/#/case/82349

At the moment we are doing feasibility into this feature but due to the lack of any WPF – SVG export provided by Microsoft, it is not proving very easy…

Best regards,
Andrew

  • You must to post comments
0
0

Are there updates on this topic?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies