14

Is there a sample on how to do Venn diagram using d3.js? I know about the two samples:

enter image description here

enter image description here

that are provided on D3 website. However they force me to calculate by myself the x.y position of the circles. I am hoping to feed just the data (circle sizes and overlap size) to a function/chart and it should do the layout for me.

VividD
  • 10,456
  • 6
  • 64
  • 111
Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
  • I don't think anybody has built a reusable venn diagram chart yet. Are you going to be putting data in the chart (labels or other information), or you literally are just looking for a bunch of overlapping circles? – Bill Sep 22 '12 at 17:05
  • I can do without putting data – Yaron Naveh Sep 22 '12 at 17:47

2 Answers2

12

Venn Diagrams with D3.js

enter image description here

enter image description here

It is working fine.

VividD
  • 10,456
  • 6
  • 64
  • 111
fgborja
  • 269
  • 3
  • 3
7

To get an understanding of the required algorithm, read Leland Wilkinson's paper, Exact and Approximate Area-proportional Circular Venn and Euler Diagrams, published in IEEE TVCG February 2012. To the best of my knowledge no one has yet implemented a venneuler layout in D3, but that would make a fantastic D3 plugin.

mbostock
  • 51,423
  • 13
  • 175
  • 129