Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Data Visualization

Chord Diagram Generator

Generate interactive chord diagrams for visualizing bidirectional flows and relationships between entities

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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"}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/chord-diagram-generator

Parameters

NameTypeRequiredDescription
chartDatatextareaYesArray of connections with source, target, and value fields
chartTitletextNoTitle displayed above the chart
sortOrderselectNo—
colorSchemeselectNo—
backgroundColorcolorNoChart background color
radiusnumberNoOuter circle radius in pixels
innerRadiusnumberNoInner circle radius in pixels
chordOpacitynumberNoChord transparency (0-1)
paddingnumberNoSpace between arcs (0-0.1)
showLabelscheckboxNoDisplay entity names
showValuescheckboxNoDisplay total flow values
showLegendcheckboxNoDisplay color legend
showStatscheckboxNoDisplay flow statistics
enableAnimationcheckboxNoAnimate on load
animationDurationnumberNoAnimation time in milliseconds

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "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"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "chord-diagram-generator",
    "arguments": {
  "chartData": "JSON array format:\n[{&quot;source&quot;: &quot;北京&quot;, &quot;target&quot;: &quot;上海&quot;, &quot;value&quot;: 850},\n {&quot;source&quot;: &quot;北京&quot;, &quot;target&quot;: &quot;广州&quot;, &quot;value&quot;: 620},\n {&quot;source&quot;: &quot;北京&quot;, &quot;target&quot;: &quot;深圳&quot;, &quot;value&quot;: 480},\n {&quot;source&quot;: &quot;上海&quot;, &quot;target&quot;: &quot;北京&quot;, &quot;value&quot;: 780},\n {&quot;source&quot;: &quot;上海&quot;, &quot;target&quot;: &quot;广州&quot;, &quot;value&quot;: 320},\n {&quot;source&quot;: &quot;广州&quot;, &quot;target&quot;: &quot;深圳&quot;, &quot;value&quot;: 410},\n {&quot;source&quot;: &quot;深圳&quot;, &quot;target&quot;: &quot;北京&quot;, &quot;value&quot;: 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"
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool