Is there an open source or paid .NET library that will create diagrams with two important features:
- Create Venn Diagrams
- Save the diagrams as images?
Is there an open source or paid .NET library that will create diagrams with two important features:
Not sure if this was available in February. But the Google chart API supports Venn diagrams: http://code.google.com/apis/chart/image/docs/chart_wizard.html
As an example: http://chart.apis.google.com/chart?chs=200x80&cht=v&chd=t:100,50,80,20,10,20,5&chdl=DataA|DataB|DataC
Returns a Venn diagram with the following properties:
chr=200x80 (Size of image) (Can be a max of 300 000 pixels) cht=v (Venn diagram type) chd=t: (Size A, Size B, Size C, Size A intersect B, Size A intersect C, Size B intersect C, Size A intersect B intersect C) chdl= (Labels of the data)
You can use this with 1, 2 or 3 circles. (For two just make the size parameters -1 where C would be and only give two labels.
chart.apis.google.com/chart?chs=200x100&cht=v&chd=t:100,100,-1,10,-1,-1,-1&chdl=DataA|DataB
You can implement this in any application that can load an image and therefore save the result of this query.
I don't know of one that currently exists, but it shouldn't be that hard to create. One
Image
object to represent the chart. UseGraphics.FillEllipse
to draw the circles, andGraphics.DrawString
to print the statistics on the diagram. And theImage.Save
method will save the chart to file.