Graflume · Alpha

Venn · Extreme-environment application

Describe relative set size and overlap with up to six deterministically placed circles. Combine container size, input method, display capability, and user preference instead of guessing a device name. Compare mobile, watch, e-paper, monochrome, dot-matrix, and standards-based extreme environments on the same chart.

Chart family · Specialized families

Venn

Describe relative set size and overlap with up to six deterministically placed circles.

Quick API
venn()
Browser snapshot
graflume/complete
mark
venn
Presets
1

Extreme environments

Reconfigure for display, input, and device capability

Combine container size, input method, display capability, and user preference instead of guessing a device name. Compare mobile, watch, e-paper, monochrome, dot-matrix, and standards-based extreme environments on the same chart.

Fluid responsive

Reflow axes, legends, descriptions, and controls from the available container size.

960×540 · adaptive.profiles=responsive-fluid
  • zoom-reflow
  • shape-rectangle
  • display-color
  • input-fine
  • motion-full
  • renderer-canvas-spatial

Extreme environment preview

Choose a profile above to preserve the same data and ChartSpec while reconfiguring the chart for display size, input method, display capability, and user preference.

StatusLoading

  • adaptive
  • capability-driven
  • no-user-agent-branching
  • Legend: legend · continuous · size
  • Point and range highlights: highlights[] · datum · venn region size
  • Custom callouts: annotations[] · datum · venn region size · callout · placement:auto
  • Interactive selection: selection · multiple · toggle
Graflume.venn() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.venn()

const data = [
  {
    "members": [
      "Cohort explorer",
      "Forecast review"
    ],
    "sets": [
      "Analysis"
    ],
    "size": 34
  },
  {
    "members": [
      "Runtime profiler",
      "Schema audit"
    ],
    "sets": [
      "Engineering"
    ],
    "size": 28
  },
  {
    "members": [
      "Theme studio",
      "Layout review"
    ],
    "sets": [
      "Design"
    ],
    "size": 22
  },
  {
    "members": [
      "Metric debugger"
    ],
    "sets": [
      "Analysis",
      "Engineering"
    ],
    "size": 15
  },
  {
    "members": [
      "Story dashboard"
    ],
    "sets": [
      "Analysis",
      "Design"
    ],
    "size": 12
  },
  {
    "members": [
      "Component lab"
    ],
    "sets": [
      "Engineering",
      "Design"
    ],
    "size": 9
  },
  {
    "members": [
      "Graflume manual"
    ],
    "sets": [
      "Analysis",
      "Engineering",
      "Design"
    ],
    "size": 7
  }
];

const options = {
  "accessibility": {
    "description": "Analysis, engineering, and design overlap in seven valid set regions. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Venn diagram: Analysis, engineering, and design overlap in seven valid set regions"
  },
  "annotations": [
    {
      "connector": {
        "visible": true
      },
      "detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
      "id": "manual-callout",
      "placement": "auto",
      "style": {
        "maxWidth": 220,
        "padding": 8
      },
      "target": {
        "field": "size",
        "type": "datum",
        "value": 15
      },
      "text": "Point and range highlights · [Analysis Engineering]"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "size",
        "type": "datum",
        "value": 15
      }
    }
  ],
  "interaction": {
    "controls": {
      "annotations": true,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "selection": {
      "ariaLabel": "Interactive selection",
      "clearOnBackground": true,
      "clearOnEscape": true,
      "highlight": {
        "padding": 5
      },
      "key": "sets",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "sets",
          "format": "auto",
          "label": "Sets"
        },
        {
          "field": "size",
          "format": "number",
          "label": "Size"
        },
        {
          "field": "members",
          "format": "auto",
          "label": "Members"
        }
      ],
      "title": "Venn",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "size",
    "interactive": false,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "continuous",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Size",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "members": "members",
      "sets": "sets",
      "size": "size"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Analysis, engineering, and design overlap in seven valid set regions",
    "text": "Venn diagram"
  },
  "width": "container",
  "x": {
    "field": "sets",
    "title": "Sets",
    "type": "ordinal"
  },
  "y": {
    "field": "size",
    "title": "Items",
    "type": "quantitative"
  }
};

Graflume.venn('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Analysis, engineering, and design overlap in seven valid set regions. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Venn diagram: Analysis, engineering, and design overlap in seven valid set regions"
  },
  "annotations": [
    {
      "connector": {
        "visible": true
      },
      "detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
      "id": "manual-callout",
      "placement": "auto",
      "style": {
        "maxWidth": 220,
        "padding": 8
      },
      "target": {
        "field": "size",
        "type": "datum",
        "value": 15
      },
      "text": "Point and range highlights · [Analysis Engineering]"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "size",
        "type": "datum",
        "value": 15
      }
    }
  ],
  "interaction": {
    "controls": {
      "annotations": true,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "selection": {
      "ariaLabel": "Interactive selection",
      "clearOnBackground": true,
      "clearOnEscape": true,
      "highlight": {
        "padding": 5
      },
      "key": "sets",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "sets",
          "format": "auto",
          "label": "Sets"
        },
        {
          "field": "size",
          "format": "number",
          "label": "Size"
        },
        {
          "field": "members",
          "format": "auto",
          "label": "Members"
        }
      ],
      "title": "Venn",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "size",
    "interactive": false,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "continuous",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Size",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "members": "members",
      "sets": "sets",
      "size": "size"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Analysis, engineering, and design overlap in seven valid set regions",
    "text": "Venn diagram"
  },
  "width": "container",
  "x": {
    "field": "sets",
    "title": "Sets",
    "type": "ordinal"
  },
  "y": {
    "field": "size",
    "title": "Items",
    "type": "quantitative"
  }
}