benfred / venn.js

Area proportional Venn and Euler diagrams in JavaScript
MIT License
1.04k stars 216 forks source link

Sometimes intersection of two circles is unseen (with 3 circles in total) #133

Open xantore opened 5 years ago

xantore commented 5 years ago

Hey! I really appreciate your project and it is really awesome! :) However I came across a sad case with 3 circlres A, B and C, where intersection of circles B and C is wrongly equal to intersection of all three circles, while it should be greater, because: |B∩C| = 5 |A∩B∩C| = 3 Therefore there should be a part where B and C overlap and A does not (and the area of it should be 5-3=2). I attach a screenshot of these parameters from your site https://www.benfrederickson.com/venn-diagrams-with-d3.js/

case

Maybe it is already fixed somewhere or these values are somehow invalid in your opinion? I will really appreciate any information or help or just answer "I have not seen that before and I can not explain that in a short time".

It would be a pity if such a small detail decided about resigning from your solution... :(

Kind regards!

jonnyrobbie commented 5 years ago

Keep in mind, that even just three circles can be constructed in such a way that it is inconsistent in two dimensions. At this point, the utility function may already be nonzero and giving you just a compromise.