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

Data Visualization

范围图生成器

创建范围图来可视化最小值-最大值范围,支持中位数标记和异常值检测

html· HTML 结果打开工具

快速开始

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

cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/range-chart-generator' \
  -H 'Content-Type: application/json' \
  -d '{"chartTitle":"输入图表标题...","dataRanges":"JSON format example:\n[{"label": "Product A", "min": 80, "max": 120, "median": 95, "mean": 98, "outliers": [65, 135]},\n{"label": "Product B", "min": 90, "max": 140, "median": 110, "mean": 115, "outliers": [75, 155]},\n{"label": "Product C", "min": 70, "max": 110, "median": 85, "mean": 88, "outliers": [60, 125]}]","xAxisLabel":"Categories","yAxisLabel":"Values","rangeStyle":"line","rangeColor":"#3b82f6","medianColor":"#ff6b6b","pointColor":"#4ecdc4","outlierColor":"#ff4444","lineColor":"#333333","lineWidth":"2","pointSize":"4","outlierSize":"6","opacity":"0.3","showMedian":true,"showMean":false,"showOutliers":true,"showDataPoints":true,"showGrid":true,"gridColor":"#e0e0e0","backgroundColor":"#ffffff","chartWidth":"800","chartHeight":"500","valueFormat":"decimal","fontSize":"12","titleSize":"18","fontFamily":"Arial","animationEnabled":true,"animationDuration":"1000"}'

© 2026 Elysia Tools. 开发者文档。

返回主站浏览工具

API 参考

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

请求端点

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

请求参数

参数名类型必填说明
chartTitletext否显示在范围图上方的标题
dataRangestextarea是JSON数组格式的数据范围,包含最小值、最大值和可选的中位数、平均值、异常值
xAxisLabeltext否X轴的标签
yAxisLabeltext否Y轴的标签
rangeStyleselect是—
rangeColorcolor否范围可视化的主色调
medianColorcolor否中位数标记的颜色
pointColorcolor否平均数点标记的颜色
outlierColorcolor否异常值点的颜色
lineColorcolor否范围线条的颜色(如适用)
lineWidthnumber否范围线的像素宽度
pointSizenumber否最小/最大数据点的像素大小
outlierSizenumber否异常值点的像素大小
opacitynumber否范围填充的透明度级别(0.0-1.0)
showMediancheckbox否在范围上显示中位数标记
showMeancheckbox否显示平均数点标记
showOutlierscheckbox否显示异常值数据点
showDataPointscheckbox否显示最小和最大数据点
showGridcheckbox否显示背景网格线
gridColorcolor否网格线的颜色
backgroundColorcolor否图表的背景颜色
chartWidthnumber否图表的像素宽度
chartHeightnumber否图表的像素高度
valueFormatselect否—
fontSizenumber否标签和文本的字体大小
titleSizenumber否图表标题的字体大小
fontFamilytext否文本元素的字体族
animationEnabledcheckbox否加载时动画显示图表
animationDurationnumber否动画持续时间(毫秒)

响应格式

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-range-chart-generator": {
      "name": "range-chart-generator",
      "description": "创建范围图来可视化最小值-最大值范围,支持中位数标记和异常值检测",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=range-chart-generator",
      "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": "range-chart-generator",
    "arguments": {
  "chartTitle": "输入图表标题...",
  "dataRanges": "JSON format example:\n[{&quot;label&quot;: &quot;Product A&quot;, &quot;min&quot;: 80, &quot;max&quot;: 120, &quot;median&quot;: 95, &quot;mean&quot;: 98, &quot;outliers&quot;: [65, 135]},\n{&quot;label&quot;: &quot;Product B&quot;, &quot;min&quot;: 90, &quot;max&quot;: 140, &quot;median&quot;: 110, &quot;mean&quot;: 115, &quot;outliers&quot;: [75, 155]},\n{&quot;label&quot;: &quot;Product C&quot;, &quot;min&quot;: 70, &quot;max&quot;: 110, &quot;median&quot;: 85, &quot;mean&quot;: 88, &quot;outliers&quot;: [60, 125]}]",
  "xAxisLabel": "Categories",
  "yAxisLabel": "Values",
  "rangeStyle": "line",
  "rangeColor": "#3b82f6",
  "medianColor": "#ff6b6b",
  "pointColor": "#4ecdc4",
  "outlierColor": "#ff4444",
  "lineColor": "#333333",
  "lineWidth": "2",
  "pointSize": "4",
  "outlierSize": "6",
  "opacity": "0.3",
  "showMedian": true,
  "showMean": false,
  "showOutliers": true,
  "showDataPoints": true,
  "showGrid": true,
  "gridColor": "#e0e0e0",
  "backgroundColor": "#ffffff",
  "chartWidth": "800",
  "chartHeight": "500",
  "valueFormat": "decimal",
  "fontSize": "12",
  "titleSize": "18",
  "fontFamily": "Arial",
  "animationEnabled": true,
  "animationDuration": "1000"
}
  }
}
可用逗号分隔的 toolId 在一个会话中串联多个工具,例如 /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp(最多 20 个)。

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

浏览工具
打开工具