Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6013171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:30:37+00:00 2026-05-23T02:30:37+00:00

I am faced with the problem of representing a Venn diagram as a tree

  • 0

I am faced with the problem of representing a Venn diagram as a tree structure in order to process the information as XML.

Do anyone have an elegant way for doing this, or maybe some acute observations?

Please note that I am not able to handle individual elements in the sets. Diagrams would be illustrating situations equivalent to “There are 20 students in all, of which 5 do sports, 8 play chess and 3 do both”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:30:37+00:00Added an answer on May 23, 2026 at 2:30 am

    From your description my understanding is you are talking about dealing with the aggregate data (count for each set) rather than discrete items. So with that assumption, I would first look at how another code base represents Venn Diagrams (Google Chart API)

    The Google chart API represents Venn Diagrams using seven values. I have extracted the descripions below from here: http://code.google.com/apis/chart/image/docs/gallery/venn_charts.html

    • The first three values specify the sizes of three circles: A, B, and C. For a chart with only two circles, specify zero for the third value.
    • The fourth value specifies the size of the intersection of A and B.
    • The fifth value specifies the size of the intersection of A and C. For a chart with only two circles, do not specify a value here.
    • The sixth value specifies the size of the intersection of B and C. For a chart with only two circles, do not specify a value here.
    • The seventh value specifies the size of the common intersection of A, B, and C. For a chart with only two circles, do not specify a value here.

    We can apply the same approach to represent your problem domain in XML:

    <venn_diagram item_type="Students" item_count="20">
        <set_a name="Play Sports" item_count="5"/>
        <set_b name="Play Chess" item_count="8"/>
        <set_a_and_b name="Play Both" item_count="3"/>
    </venn_diagram>
    

    With this information you know enough to draw the diagram.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I faced a problem that I can not find a way to change the
I have faced a problem in Qt with error: cannot convert parameter 1 from
We've faced strange problem. We have log on service, that authenticates user, adds auth
Anyone faced a problem while creating a UserControl in a library then drop it
i have faced this problem couple of days ago, while trying to import an
am building an iphone app and I have faced a problem when I use
I faced a problem using a Boost variant. I have a segmentation fault when
I've faced strange problem with my git repo. In process of cloning it looses
I have faced this problem when working with ORACLE 10g. I read the answers
I seem to have faced this problem many times and I wanted to ask

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.