+ Reply to Thread
Results 1 to 15 of 15

Generate Venn diagrams with multiple data

  1. #1
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Generate Venn diagrams with multiple data

    Hi,

    I am looking for the best way to create a venn diagram with multiple data thereby the data from several 'circles' would proportionately overlap. I have seen an example on Chandoo that did this with vba but only for two circles. Does anyone know of any good examples? I've read that bubble charts may be also used but haven't seen any examples.

    Thanks.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    Hi abousetta,

    I googled this
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Generate Venn diagrams with multiple data

    Thanks @xladept. The program looks interesting but even their venn chart seems not to scale. Most people don't care about the scale but the project I am working needs it to be to scale. I have made some progress, but I still can't make it work just right. So I'm think my calculations might be off. If anyone can lend me a hand (especially if they are good with math and geometry) then I would be grateful.

    My thoughts are that if I know the size of the three sides to triangle then I should be able to put the center of each 'bubble' on the correct x and y axis points. Any thoughts???

    Anyways, attached is the current copy I am working on. Hopefully someone here has some insight into my dilemma.

    abousetta
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    Hi Abousetta,

    I usually make my own shapes - run this with The Venn Diagram data in A1:E6 - it's unpolished but allows for a scale (variable s):

    Please Login or Register  to view this content.
    I'm thinking about how to calculate the offsets - are the Areas and Intersections golden?
    Last edited by xladept; 04-19-2013 at 02:31 AM.

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Generate Venn diagrams with multiple data

    Thanks for this @xladept. I looks good.

    abousetta

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    Thanks abousetta - but it's not correct - I'm thinking about it, but it's complex - at least doing your own shapes allows you to get it on the page

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Generate Venn diagrams with multiple data

    It's more complex than I imagined. So wonder you always see these things as using only two (if to scale) because the first starts at x = 0, y = 0 and the second will x = something and y = 0. The x for the second will depend on the overlap. Once you try to do the third, forth, etc. the math is just above my head. Even so, it has given me some options to work with.

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    Hi Abousetta,

    I'm making some headway - I figured that there would be just one offset between any two circles, and the way to nail it would be in the combinations - so here's a way to get the offsets:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    It's getting more correct This is almost what it should look like:Abousetta1.jpg
    Last edited by xladept; 04-19-2013 at 10:46 PM.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    Hi Abousetta,

    I removed all the glaring errors but I keep getting V4->V3 - but I was able to get 5/6 Intersections

    anyway - here it is without some of the niceties but not devoid of any enhancements

    Venn.xlsm

  10. #10
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Generate Venn diagrams with multiple data

    Hi,

    This is really great. I think it's probably because the area of the forth circle is so small that accuracy is difficult. Let me try it with bigger values and see how the presentation looks. In all cases, I am happy with the results. Thank you so much for all your time and effort.

    abousetta

    P.S. You should add a thread in the tips and tutorials so that other will easily find your great example.

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    You're welcome! I haven't any experience with tips & tutorials but I'll check it out - thank you
    Last edited by xladept; 04-26-2013 at 07:48 PM.

  12. #12
    Registered User
    Join Date
    06-10-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Re: Generate Venn diagrams with multiple data

    Did you guys find any final solution ?

  13. #13
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    Hi yogesh,

    Welcome to the Forum!

    I suspect that the 5/6 is a hard constraint - but I don't quite know how to prove it

    The program deals only with circles while Venn diagrams could be elliptical - an elliptical configuration would be solvable, but I don't know how to write that

  14. #14
    Registered User
    Join Date
    06-10-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Re: Generate Venn diagrams with multiple data

    Thanks xladept for you reply.

    I would appriciate if you can share me the code to draw a 3 level Venn diagram.

  15. #15
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Generate Venn diagrams with multiple data

    Hi Yogesh,

    Here's the code - once you have the calculations, just run it from 3 to 5!

    Please Login or Register  to view this content.
    *the rest of the system is in the workbook post #9
    Last edited by xladept; 06-12-2015 at 03:39 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1