Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Venn diagram does not work if there are only overlapping sets #6

Open
bvenn opened this issue Nov 10, 2022 · 1 comment
Open

Venn diagram does not work if there are only overlapping sets #6

bvenn opened this issue Nov 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bvenn
Copy link
Member

bvenn commented Nov 10, 2022

let actionSet = Set.ofArray [|"a";"b";"c"|]
let comedySet = Set.ofArray [|"b";"c";"d"|]
let dramaSet = Set.ofArray  [|"c";"d";"f"|]

Chart.Venns (
    [|"Action";"Comedy";"Drama"|],
    [|actionSet;comedySet;dramaSet|]
    )
|> Chart.show

This does not work, because comedySet does not contain unique elements.

@joott

@bvenn bvenn added the bug Something isn't working label Nov 10, 2022
@bvenn
Copy link
Member Author

bvenn commented Nov 10, 2022

Additionally the intersects seems to be not correctly determined:

let actionSet = Set.ofArray [|"a";"b";"c"|]
let comedySet = Set.ofArray [|"b";"c";"d";"z"|]
let dramaSet = Set.ofArray  [|"c";"d";"f"|]

Chart.Venn (
    [|"Action";"Comedy";"Drama"|],
    [|actionSet;comedySet;dramaSet|]
    )

The assignment to the intersects does not match:

image

Unique Intersect Action Comedy = "b" = 1
Unique Intersect Action Drama = 0
Unique Intersect Drama Comedy = "d" = 1

Intersect Action Comedy Drama = "c" = 1

Unique Action = "a" = 1
Unique Comedy = "z" = 1
Unique Drama = "f" = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants