mcp-echarts
v0.7.1❤️ Generate visual charts using Apache ECharts with AI MCP dynamically.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_echarts
Generate visual charts using Apache ECharts with echarts option and configuration dynamically. Apache ECharts is an Open Source JavaScript Visualization Library, which is used to create interactive charts and visualizations in web applications. It supports a wide range of chart types, including line charts, bar charts, pie charts, scatter plots, and more. ECharts is highly customizable and can be integrated with various data sources to create dynamic visualizations.
| Parameter | Type | Description |
|---|---|---|
echartsOption * | string | ECharts option and configuration used to generate charts. For example: { "title": { "text": "ECharts Entry Example", "left": "center", "top": "2%" }, "tooltip": {}, "xAxis": {… |
height | number | The height of the ECharts in pixels. Default is 600. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | ECharts theme, optional. Default is 'default'. |
width | number | The width of the ECharts in pixels. Default is 800. |
generate_area_chart
Generate an area chart to show data trends under continuous independent variables and observe the overall data trend, such as, displacement = velocity (average or instantaneous) × time: s = v × t. If the x-axis is time (t) and the y-axis is velocity (v) at each moment, an area chart allows you to observe the trend of velocity over time and infer the distance traveled by the area's size.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for area chart, such as, [{ time: '2015', value: 23 }, { time: '2016', value: 32 }]. For multiple series: [{ group: 'Series A', time: '2015', value: 23 }, { group: 'Series B', time: '2015', value… |
axisXTitle | string | Set the x-axis title of chart. |
axisYTitle | string | Set the y-axis title of chart. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
showArea | boolean | Whether to fill the area under the line. Default is false. |
showSymbol | boolean | Whether to show symbols on data points. Default is true. |
smooth | boolean | Whether to use a smooth curve. Default is false. |
stack | boolean | Whether stacking is enabled. When enabled, line charts require a 'group' field in the data. |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_line_chart
Generate a line chart to show trends over time, such as, the ratio of Apple computer sales to Apple's profits changed from 2000 to 2016.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for line chart, such as, [{ time: '2015', value: 23 }, { time: '2016', value: 32 }]. For multiple series: [{ group: 'Series A', time: '2015', value: 23 }, { group: 'Series B', time: '2015', value… |
axisXTitle | string | Set the x-axis title of chart. |
axisYTitle | string | Set the y-axis title of chart. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
showArea | boolean | Whether to fill the area under the line. Default is false. |
showSymbol | boolean | Whether to show symbols on data points. Default is true. |
smooth | boolean | Whether to use a smooth curve. Default is false. |
stack | boolean | Whether stacking is enabled. When enabled, line charts require a 'group' field in the data. |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_bar_chart
Generate a bar chart to show data for numerical comparisons among different categories, such as, comparing categorical data and for horizontal comparisons.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for bar chart, such as, [{ category: 'Category A', value: 10 }, { category: 'Category B', value: 20 }] or [{ category: 'Category A', value: 10, group: 'Group A' }]. |
axisXTitle | string | Set the x-axis title of chart. |
axisYTitle | string | Set the y-axis title of chart. |
group | boolean | Whether grouping is enabled. When enabled, bar charts require a 'group' field in the data. When `group` is true, `stack` should be false. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
stack | boolean | Whether stacking is enabled. When enabled, bar charts require a 'group' field in the data. When `stack` is true, `group` should be false. |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_pie_chart
Generate a pie chart to show the proportion of parts, such as, market share and budget allocation.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for pie chart, such as, [{ category: 'Category A', value: 27 }, { category: 'Category B', value: 25 }]. |
height | integer | Set the height of the chart, default is 600px. |
innerRadius | number | Set the innerRadius of pie chart, the value between 0 and 1. Set the pie chart as a donut chart. Set the value to 0.6 or number in [0 ,1] to enable it. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_radar_chart
Generate a radar chart to display multidimensional data (four dimensions or more), such as, evaluate Huawei and Apple phones in terms of five dimensions: ease of use, functionality, camera, benchmark scores, and battery life.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for radar chart, such as, [{ name: 'Design', value: 70 }, { name: 'Performance', value: 85 }] or [{ name: 'Design', value: 70, group: 'iPhone' }]. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_scatter_chart
Generate a scatter chart to show the relationship between two variables, helps discover their relationship or trends, such as, the strength of correlation, data distribution patterns.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for scatter chart, such as, [{ x: 10, y: 15 }, { x: 20, y: 25 }]. |
axisXTitle | string | Set the x-axis title of chart. |
axisYTitle | string | Set the y-axis title of chart. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_sankey_chart
Generate a sankey chart to visualize the flow of data between different stages or categories, such as, the user journey from landing on a page to completing a purchase.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for sankey chart, such as, [{ source: 'Landing Page', target: 'Product Page', value: 50000 }, { source: 'Product Page', target: 'Add to Cart', value: 35000 }]. |
height | integer | Set the height of the chart, default is 600px. |
nodeAlign | string | Alignment of nodes in the sankey chart, such as, 'left', 'right', or 'justify'. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_funnel_chart
Generate a funnel chart to visualize the progressive reduction of data as it passes through stages, such as, the conversion rates of users from visiting a website to completing a purchase.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for funnel chart, such as, [{ category: 'Browse Website', value: 50000 }, { category: 'Add to Cart', value: 35000 }, { category: 'Generate Order', value: 25000 }]. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_gauge_chart
Generate a gauge chart to display single indicator's current status, such as, CPU usage rate, completion progress, or performance scores.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for gauge chart, such as, [{ name: 'CPU Usage', value: 75 }]. Multiple gauges can be displayed. |
height | integer | Set the height of the chart, default is 600px. |
max | number | Maximum value of the gauge, default is 100. |
min | number | Minimum value of the gauge, default is 0. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_treemap_chart
Generate a treemap chart to display hierarchical data and can intuitively show comparisons between items at the same level, such as, show disk space usage with treemap.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for treemap chart, such as, [{ name: 'Design', value: 70, children: [{ name: 'Tech', value: 20 }] }]. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_sunburst_chart
Generate a sunburst chart to display multi-level hierarchical data, such as, organizational structure, file system hierarchy, or category breakdown.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for sunburst chart, such as, [{ name: 'Technology', value: 100, children: [{ name: 'Frontend', value: 60, children: [{ name: 'React', value: 30 }] }] }]. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_heatmap_chart
Generate a heatmap chart to display data density or intensity distribution, such as, user activity patterns by time and day, or correlation matrix.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for heatmap chart, such as, [{ x: 'Mon', y: '12AM', value: 5 }, { x: 'Tue', y: '1AM', value: 3 }]. |
axisXTitle | string | Set the x-axis title of chart. |
axisYTitle | string | Set the y-axis title of chart. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_candlestick_chart
Generate a candlestick chart for financial data visualization, such as, stock prices, cryptocurrency prices, or other OHLC (Open-High-Low-Close) data.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for candlestick chart, such as, [{ date: '2023-01-01', open: 100, high: 110, low: 95, close: 105, volume: 10000 }]. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
showVolume | boolean | Whether to show volume chart below candlestick. Default is false. |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_boxplot_chart
Generate a boxplot chart to show data for statistical summaries among different categories, such as, comparing the distribution of data points across categories.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for boxplot chart, such as, [{ category: 'Category A', value: 10 }, { category: 'Category B', value: 20, group: 'Group A' }]. |
axisXTitle | string | Set the x-axis title of chart. |
axisYTitle | string | Set the y-axis title of chart. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_graph_chart
Generate a network graph chart to show relationships (edges) between entities (nodes), such as, relationships between people in social networks.
| Parameter | Type | Description |
|---|---|---|
data * | object | Data for network graph chart, such as, { nodes: [{ id: 'node1', name: 'Node 1' }], edges: [{ source: 'node1', target: 'node2' }] } |
height | integer | Set the height of the chart, default is 600px. |
layout | string | Layout algorithm for the graph. Default is 'force'. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_parallel_chart
Generate a parallel coordinates chart to display multi-dimensional data, such as, comparing different products across multiple attributes.
| Parameter | Type | Description |
|---|---|---|
data * | array | Data for parallel chart, such as, [{ name: 'Product A', values: [4.2, 3.4, 2.3, 1.8] }]. |
dimensions * | array | Names of the dimensions/axes, such as, ['Price', 'Quality', 'Service', 'Value']. |
height | integer | Set the height of the chart, default is 600px. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |
generate_tree_chart
Generate a tree chart to display hierarchical data structure, such as, organizational chart, family tree, or file directory structure.
| Parameter | Type | Description |
|---|---|---|
data * | object | Tree data structure, such as, { name: 'Root', children: [{ name: 'Child 1' }, { name: 'Child 2' }] }. |
height | integer | Set the height of the chart, default is 600px. |
layout | string | Tree layout type. Default is 'orthogonal'. |
orient | string | Tree orientation. LR=left-to-right, RL=right-to-left, TB=top-to-bottom, BT=bottom-to-top. Default is 'LR'. |
outputType | string | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the val… |
theme | string | Set the theme for the chart, optional, default is 'default'. |
title | string | Set the title of the chart. |
width | integer | Set the width of the chart, default is 800px. |