question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Venn Diagram Syntax

See original GitHub issue

Problem

I’m always frustrated when I have to manually create Venn diagrams of more than 4 intersecting circles. It might sound trivial but arranging complex Venn diagrams in a legible manner is annoying and hard with most of the standard diagraming tools I’ve used.

Request

This was already brought up many years ago in #200 but Venn diagram in syntax in Mermaid would be great.

Venn Diagrams are basically just a visualization of set theory. So the syntax would just have to implement basic set operations:

  • Unions
  • Intersections
  • Compliments
  • Differences

Potential Syntax

Something like the following could be a good syntax:

vennDiagram
  set A
  set B
  set C

  intersect A B
  union B C
  relativeComplement A C

I know everyone is busy. I am just wondering what the general interest is from the community on prioritizing this versus other new diagram formats.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:120
  • Comments:41 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
endolithcommented, Nov 30, 2022
0reactions
brunolnettocommented, Dec 21, 2022

Citation : Batman would say: “This is not the answer you need, but the answer you deserve.”

Fact : This feature will not happen any time soon on mermaid (@knsv is needed to confirm this claim);

Reason : The visual complexity of potential 2^n intersections on a n-sets-scenario (See product “interactiVenn” on URL http://www.interactivenn.net/, first remarked here on @Roderick-Jonssoncomment)

Solution : As @endolith points out, I would be really glad for you guys to enjoy the libraries below I wrote:

python     : https://github.com/quivero/eule
javascript : https://github.com/web-needle/eulejs

Tags: @arjansingh @wolfspyre @wilsonjholmes @bobturneruk @MathiasSven @philbo87 @MoniqueSmiling @mathiasgheno @kimploo @PogiNate @JonLoose @j-r-e-i-d @LucVidal360 @Casyfill @FrodoChen @FelipeAdachi @tyten @ElectricSwan @huangyinhaow @I7T5 @rsdlt @AhmedThahir @gillyspy @ryanfeeley @g-berthiaume @dwhelan @rghvdberg @laoyaoer @avijit1258 @anchal0997 @Roderick-Jonsson

I could tag more if I knew how to request all issue_interaction_users (made-up property) from github-api.

Share the word.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Venn Diagram Symbols and Notation - Lucidchart
A complete Venn diagram represents the union of two sets. ∩: Intersection of two sets. The intersection shows what items are shared between...
Read more >
Venn Diagrams: Set Notation - Purplemath
Demonstrates the use of Venn diagrams for relationships between sets (such as intersections and unions), and also in logic.
Read more >
Venn diagram - Wikipedia
A Venn diagram is a widely used diagram style that shows the logical relation between sets, popularized by John Venn (1834–1923) in the...
Read more >
Venn Diagram Sets & Symbols - Video & Lesson Transcript
A Venn diagram is a graphical way to show how sets relate to each other using circles or other shapes that overlap each...
Read more >
Venn diagram | logic and mathematics - Britannica
Venn diagram, graphical method of representing categorical propositions and testing the validity of categorical syllogisms, devised by the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found