简体   繁体   中英

.NET Venn Diagram Library

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?

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. Use Graphics.FillEllipse to draw the circles, and Graphics.DrawString to print the statistics on the diagram. And the Image.Save method will save the chart to file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM