Data Visualization
Generate correlation and comparison matrix charts with color intensity mapping and grid layout
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/matrix-chart-generator' \
-H 'Content-Type: application/json' \
-d '{"matrixData":"JSON format:\n[\n [1, 0.8, 0.3, 0.5],\n [0.8, 1, 0.6, 0.4],\n [0.3, 0.6, 1, 0.7],\n [0.5, 0.4, 0.7, 1]\n]\n\nor CSV format:\n1,0.8,0.3,0.5\n0.8,1,0.6,0.4\n0.3,0.6,1,0.7\n0.5,0.4,0.7,1","chartTitle":"Enter chart title...","colorScheme":"blue","backgroundColor":"#ffffff","cellSize":"50","fontSize":"12","minValue":0,"maxValue":0,"chartWidth":"800","chartHeight":"600","showValues":true,"showLabels":false,"showGrid":true,"roundValues":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/matrix-chart-generator| Name | Type | Required | Description |
|---|---|---|---|
| matrixData | textarea | Yes | Matrix data as 2D array. Supports JSON array or CSV format with comma-separated values |
| chartTitle | text | No | Title that will be displayed above the matrix chart |
| colorScheme | select | No | — |
| backgroundColor | color | No | Background color for the chart |
| cellSize | number | No | Size of each cell in pixels |
| fontSize | number | No | Font size for cell values |
| minValue | number | No | Minimum value for color scale (leave empty for auto) |
| maxValue | number | No | Maximum value for color scale (leave empty for auto) |
| chartWidth | number | No | Width of the chart in pixels |
| chartHeight | number | No | Height of the chart in pixels |
| showValues | checkbox | No | Display numeric values inside cells |
| showLabels | checkbox | No | Display row and column labels (if available) |
| showGrid | checkbox | No | Display grid lines between cells |
| roundValues | checkbox | No | Round values to whole numbers for display |
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-matrix-chart-generator": {
"name": "matrix-chart-generator",
"description": "Generate correlation and comparison matrix charts with color intensity mapping and grid layout",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=matrix-chart-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": "matrix-chart-generator",
"arguments": {
"matrixData": "JSON format:\n[\n [1, 0.8, 0.3, 0.5],\n [0.8, 1, 0.6, 0.4],\n [0.3, 0.6, 1, 0.7],\n [0.5, 0.4, 0.7, 1]\n]\n\nor CSV format:\n1,0.8,0.3,0.5\n0.8,1,0.6,0.4\n0.3,0.6,1,0.7\n0.5,0.4,0.7,1",
"chartTitle": "Enter chart title...",
"colorScheme": "blue",
"backgroundColor": "#ffffff",
"cellSize": "50",
"fontSize": "12",
"minValue": 0,
"maxValue": 0,
"chartWidth": "800",
"chartHeight": "600",
"showValues": true,
"showLabels": false,
"showGrid": true,
"roundValues": false
}
}
}Questions or issues? Contact [email protected]