Elysia Tools Docs
ZH
语言
ZHESPTRUFRDEEN
返回主站
浏览工具

Data Visualization

温度计图

创建垂直温度计样式图表,完美适用于筹款目标、项目进度和目标达成可视化

html· HTML 结果打开工具

快速开始

用三种语言从你的代码中调用此工具。

cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/thermometer-chart' \
  -H 'Content-Type: application/json' \
  -d '{"thermometerData":"JSON format:\n[{"label": "Fundraising Goal", "current": 75000, "target": 100000},\n{"label": "Project Progress", "current": 85, "target": 100}]\n\nor text format:\nFundraising Goal:75000:100000\nProject Progress:85:100\n\nor just current values:\n75000\n85\n1200","chartTitle":"输入图表标题...","thermometerWidth":"60","thermometerHeight":"300","mercuryColor":"#ef4444","tubeColor":"#e5e7eb","animationDuration":"1500","scaleStyle":"none","backgroundColor":"#ffffff","showPercentage":true,"showTarget":true,"showCurrentValue":true,"showScale":true,"animated":true}'

© 2026 Elysia Tools. 开发者文档。

返回主站浏览工具

API 参考

以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。

请求端点

HTTP
POST https://api.elysiatools.com/zh/api/tools/thermometer-chart

请求参数

参数名类型必填说明
thermometerDatatextarea是温度计数据,包含当前值和目标值。支持带标签/当前值/目标值的JSON,简单的标签:当前值:目标值格式,或仅当前值
chartTitletext否显示在图表上方的标题
thermometerWidthnumber否温度计管的像素宽度
thermometerHeightnumber否温度计的像素高度
mercuryColorcolor否水银/进度填充的颜色
tubeColorcolor否温度计管背景的颜色
animationDurationnumber否水银动画的毫秒时长
scaleStyleselect否—
backgroundColorcolor否图表容器的背景颜色
showPercentagecheckbox否显示每个温度计的百分比值
showTargetcheckbox否显示目标值线和标签
showCurrentValuecheckbox否在每个温度计上显示当前值
showScalecheckbox否在温度计上显示测量刻度
animatedcheckbox否加载时动画显示水银

响应格式

HTML 结果

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

MCP 集成

将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。

服务配置

将以下内容加入你的 MCP 客户端配置:

mcp.json
{
  "mcpServers": {
    "elysiatools-thermometer-chart": {
      "name": "thermometer-chart",
      "description": "创建垂直温度计样式图表,完美适用于筹款目标、项目进度和目标达成可视化",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=thermometer-chart",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

列出可用工具

连接到 SSE 端点后,列出已开放的工具:

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

调用此工具

通过工具 id 调用,参数由其参数表构建:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "thermometer-chart",
    "arguments": {
  "thermometerData": "JSON format:\n[{&quot;label&quot;: &quot;Fundraising Goal&quot;, &quot;current&quot;: 75000, &quot;target&quot;: 100000},\n{&quot;label&quot;: &quot;Project Progress&quot;, &quot;current&quot;: 85, &quot;target&quot;: 100}]\n\nor text format:\nFundraising Goal:75000:100000\nProject Progress:85:100\n\nor just current values:\n75000\n85\n1200",
  "chartTitle": "输入图表标题...",
  "thermometerWidth": "60",
  "thermometerHeight": "300",
  "mercuryColor": "#ef4444",
  "tubeColor": "#e5e7eb",
  "animationDuration": "1500",
  "scaleStyle": "none",
  "backgroundColor": "#ffffff",
  "showPercentage": true,
  "showTarget": true,
  "showCurrentValue": true,
  "showScale": true,
  "animated": true
}
  }
}
可用逗号分隔的 toolId 在一个会话中串联多个工具,例如 /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp(最多 20 个)。

有问题或反馈?请联系 [email protected]

浏览工具
打开工具