Data Visualization
Generate interactive chord diagrams for visualizing bidirectional flows and relationships between entities
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/chord-diagram-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"JSON array format:\n[{"source": "北京", "target": "上海", "value": 850},\n {"source": "北京", "target": "广州", "value": 620},\n {"source": "北京", "target": "深圳", "value": 480},\n {"source": "上海", "target": "北京", "value": 780},\n {"source": "上海", "target": "广州", "value": 320},\n {"source": "广州", "target": "深圳", "value": 410},\n {"source": "深圳", "target": "北京", "value": 390}]\n\nEach connection represents a flow or relationship between two nodes. Values indicate connection strength.","chartTitle":"Enter chart title...","sortOrder":"value-desc","colorScheme":"default","backgroundColor":"#ffffff","radius":"300","innerRadius":"150","chordOpacity":"0.6","padding":"0.02","showLabels":true,"showValues":true,"showLegend":true,"showStats":true,"enableAnimation":true,"animationDuration":"1500"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/chord-diagram-generator| Name | Type | Required | Description |
|---|---|---|---|
| chartData | textarea | Yes | Array of connections with source, target, and value fields |
| chartTitle | text | No | Title displayed above the chart |
| sortOrder | select | No | — |
| colorScheme | select | No | — |
| backgroundColor | color | No | Chart background color |
| radius | number | No | Outer circle radius in pixels |
| innerRadius | number | No | Inner circle radius in pixels |
| chordOpacity | number | No | Chord transparency (0-1) |
| padding | number | No | Space between arcs (0-0.1) |
| showLabels | checkbox | No | Display entity names |
| showValues | checkbox | No | Display total flow values |
| showLegend | checkbox | No | Display color legend |
| showStats | checkbox | No | Display flow statistics |
| enableAnimation | checkbox | No | Animate on load |
| animationDuration | number | No | Animation time in milliseconds |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-chord-diagram-generator": {
"name": "chord-diagram-generator",
"description": "Generate interactive chord diagrams for visualizing bidirectional flows and relationships between entities",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=chord-diagram-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "chord-diagram-generator",
"arguments": {
"chartData": "JSON array format:\n[{"source": "北京", "target": "上海", "value": 850},\n {"source": "北京", "target": "广州", "value": 620},\n {"source": "北京", "target": "深圳", "value": 480},\n {"source": "上海", "target": "北京", "value": 780},\n {"source": "上海", "target": "广州", "value": 320},\n {"source": "广州", "target": "深圳", "value": 410},\n {"source": "深圳", "target": "北京", "value": 390}]\n\nEach connection represents a flow or relationship between two nodes. Values indicate connection strength.",
"chartTitle": "Enter chart title...",
"sortOrder": "value-desc",
"colorScheme": "default",
"backgroundColor": "#ffffff",
"radius": "300",
"innerRadius": "150",
"chordOpacity": "0.6",
"padding": "0.02",
"showLabels": true,
"showValues": true,
"showLegend": true,
"showStats": true,
"enableAnimation": true,
"animationDuration": "1500"
}
}
}Questions or issues? Contact [email protected]