Categories

XLSX Chart Embedder

Embed generated chart images into Excel workbooks using workbook data ranges for bar or pie chart reports

Insert charts into Excel workbooks. - Reads category/value ranges from workbook sheets - Generates bar or pie charts with Canvas - Embeds PNG charts into target worksheets - Great for lightweight report packs where image-based charts are acceptable

Example Results

1 examples

Embed bar and pie chart images

Generate chart images from worksheet ranges and place them into the workbook

xlsx-chart-embedder-example1.xlsx View File
View input parameters
{ "workbookFile": "/public/samples/xlsx/xlsx-chart-embedder-example1.xlsx", "chartsJson": "[\n {\n \"sheetName\": \"Charts\",\n \"chartType\": \"bar\",\n \"title\": \"Monthly Revenue\",\n \"categoriesRange\": \"Data!A2:A7\",\n \"valuesRange\": \"Data!B2:B7\",\n \"anchorCell\": \"B2\",\n \"widthPx\": 520,\n \"heightPx\": 320\n },\n {\n \"sheetName\": \"Charts\",\n \"chartType\": \"pie\",\n \"title\": \"Orders Share\",\n \"categoriesRange\": \"Data!A2:A7\",\n \"valuesRange\": \"Data!C2:C7\",\n \"anchorCell\": \"B22\",\n \"widthPx\": 520,\n \"heightPx\": 320\n }\n]" }

Click to upload file or drag and drop file here

Maximum file size: 20MB Supported formats: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

API Documentation

Request Endpoint

POST /en/api/tools/xlsx-chart-embedder

Request Parameters

Parameter Name Type Required Description
workbookFile file (Upload required) Yes -
chartsJson textarea Yes -

File type parameters need to be uploaded first via POST /upload/xlsx-chart-embedder to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-xlsx-chart-embedder": {
      "name": "xlsx-chart-embedder",
      "description": "Embed generated chart images into Excel workbooks using workbook data ranges for bar or pie chart reports",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=xlsx-chart-embedder",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]