Venn Diagram

A Venn diagram is a chart that uses overlapping circles to represent set relationships. Each circle represents a set, and the overlapping areas between circles represent the intersection of sets, while non-overlapping parts represent unique elements. Venn diagrams intuitively show intersections, unions, and complements between sets, and are commonly used in set operations, classification analysis, and similar scenarios.

Use Cases

  • Used to show relationships between sets, such as data classification, attribute overlap, and user group intersections
  • Suitable for analyzing intersections, unions, and complements of sets, commonly seen in mathematics, statistics, and market analysis

Visual Examples

User Purchase Behavior Intersection: Phone buyers (3500), Earphone buyers (2800), Charger buyers (2200)

Music Listener Intersection: Overlap of Radiohead, Kanye West, and Eminem fan bases from Last.fm listening records, Custom Colors

E-commerce 618 Sale: Overlap of Phone buyers (3500) and Earphone buyers (2800), Custom Palette

Options

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "venn".
dataObject[]requiredData array, each item contains sets, value, and optional label.
data.setsstring[] | stringrequiredSet identifier, indicates which set(s) the item belongs to. Can be a single set, combination, or comma-separated string.
data.valuenumberrequiredRepresents the size of the set or set intersection.
data.labelstringoptionalName of the set or set intersection.
titlestringoptionalChart title.
theme'default' | 'dark' | 'academy'optionalChart theme, default is "default".
styleObjectoptionalChart style.
style.backgroundColorstringoptionalMust be a valid color value.
style.palettestring[]optionalMust be an array of valid color values.