generate_venn_chart
Create Venn diagrams to visualize relationships between sets, highlighting intersections and differences. Ideal for analyzing commonalities and distinctions among groups with clear, customizable visuals.
Instructions
Generate a Venn diagram to visualize the relationships between different sets, showing how they intersect and overlap, such as the commonalities and differences between various groups.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Data for venn chart, such as, [{ label: 'A', value: 10, sets: ['A'] }, { label: 'B', value: 20, sets: ['B'] }, { label: 'C', value: 30, sets: ['C'] }, { label: 'AB', value: 5, sets: ['A', 'B'] }]. | |
height | No | Set the height of chart, default is 400. | |
style | No | Custom style configuration for the chart. | |
theme | No | Set the theme for the chart, optional, default is 'default'. | default |
title | No | Set the title of chart. | |
width | No | Set the width of chart, default is 600. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"data": {
"description": "Data for venn chart, such as, [{ label: 'A', value: 10, sets: ['A'] }, { label: 'B', value: 20, sets: ['B'] }, { label: 'C', value: 30, sets: ['C'] }, { label: 'AB', value: 5, sets: ['A', 'B'] }].",
"items": {
"properties": {
"label": {
"description": "Label for the venn chart segment, such as 'A', 'B', or 'C'.",
"type": "string"
},
"sets": {
"description": "Array of set names that this segment belongs to, such as ['A', 'B'] for an intersection between sets A and B.",
"items": {
"type": "string"
},
"type": "array"
},
"value": {
"description": "Value for the venn chart segment, such as 10, 20, or 30.",
"type": "number"
}
},
"required": [
"value",
"sets"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"height": {
"default": 400,
"description": "Set the height of chart, default is 400.",
"type": "number"
},
"style": {
"description": "Custom style configuration for the chart.",
"properties": {
"backgroundColor": {
"description": "Background color of the chart, such as, '#fff'.",
"type": "string"
},
"palette": {
"description": "Color palette for the chart, it is a collection of colors.",
"items": {
"type": "string"
},
"type": "array"
},
"texture": {
"default": "default",
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
"enum": [
"default",
"rough"
],
"type": "string"
}
},
"type": "object"
},
"theme": {
"default": "default",
"description": "Set the theme for the chart, optional, default is 'default'.",
"enum": [
"default",
"academy",
"dark"
],
"type": "string"
},
"title": {
"default": "",
"description": "Set the title of chart.",
"type": "string"
},
"width": {
"default": 600,
"description": "Set the width of chart, default is 600.",
"type": "number"
}
},
"required": [
"data"
],
"type": "object"
}