Save ms chart control image as svg file using C# S

2019-09-15 04:51发布

I have an existing windows application that creates png files using System.Windows.Forms.DataVisualization.Charting. I have the latest C# SVG rendering library installed from NUGET but documentation is sparse, at best.

Where can I find documentation to show how to use the same logic to produce a .svg output file?

Presumably there is something similar to: thisChart.SaveImage(fs, ChartImageFormat.Png); using the svg graphics object, but how to pass the existing object to the svg and then what is the code to output the appropriate file?

标签: c# svg
1条回答
虎瘦雄心在
2楼-- · 2019-09-15 05:19

Digging into the SVG Rendering Library a bit I gave up on this approach and rewrote the app to create the charts using OxyPlot instead. OxyPlot is open source and can produce svg files.

查看更多
登录 后发表回答