0

Is it possible to render an image with an svg format from a MS Chart?

I've tried to use png, bmp and jpg, but the resolution was to poor.

current code:

chart1.SaveImage(Path.GetFullPath(@"Charts/" + "chart1.bmp"), ChartImageFormat.Bmp);
Red-X
  • 89
  • 1
  • 1
  • 13
  • what is the size of your chart ? – Mong Zhu Sep 28 '18 at 08:00
  • There's an [SVG Rendering Engine](https://github.com/vvvv/SVG) on GitHub. Also available as [NuGet Package](https://www.nuget.org/packages/Svg/). Never tested. Check also this SO question [Saving higher resolution charts without messing up the appearance](https://stackoverflow.com/questions/9641436/saving-higher-resolution-charts-without-messing-up-the-appearance). – Jimi Sep 28 '18 at 08:09
  • @MongZhu the size is 600x300 px – Red-X Sep 28 '18 at 08:20
  • Thanks @Jimi I'll check that – Red-X Sep 28 '18 at 08:23
  • 3
    You can directly save as emf; there should be transformers that bring it to svg. Of course the resolution is strictly up to you. You can make the chart larger, save to png and make the file's dpi larger. Results are great but for vector you need to go with emf. – TaW Sep 28 '18 at 08:36

0 Answers0