mcp-echarts

v0.7.1
mcp-echarts Checked 4 hours ago Published 10 months ago

❤️ 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.

ParameterTypeDescription
echartsOption *stringECharts option and configuration used to generate charts. For example: { "title": { "text": "ECharts Entry Example", "left": "center", "top": "2%" }, "tooltip": {}, "xAxis": {…
heightnumberThe height of the ECharts in pixels. Default is 600.
outputTypestringThe 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…
themestringECharts theme, optional. Default is 'default'.
widthnumberThe 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.

ParameterTypeDescription
data *arrayData 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…
axisXTitlestringSet the x-axis title of chart.
axisYTitlestringSet the y-axis title of chart.
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
showAreabooleanWhether to fill the area under the line. Default is false.
showSymbolbooleanWhether to show symbols on data points. Default is true.
smoothbooleanWhether to use a smooth curve. Default is false.
stackbooleanWhether stacking is enabled. When enabled, line charts require a 'group' field in the data.
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData 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…
axisXTitlestringSet the x-axis title of chart.
axisYTitlestringSet the y-axis title of chart.
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
showAreabooleanWhether to fill the area under the line. Default is false.
showSymbolbooleanWhether to show symbols on data points. Default is true.
smoothbooleanWhether to use a smooth curve. Default is false.
stackbooleanWhether stacking is enabled. When enabled, line charts require a 'group' field in the data.
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for bar chart, such as, [{ category: 'Category A', value: 10 }, { category: 'Category B', value: 20 }] or [{ category: 'Category A', value: 10, group: 'Group A' }].
axisXTitlestringSet the x-axis title of chart.
axisYTitlestringSet the y-axis title of chart.
groupbooleanWhether grouping is enabled. When enabled, bar charts require a 'group' field in the data. When `group` is true, `stack` should be false.
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
stackbooleanWhether stacking is enabled. When enabled, bar charts require a 'group' field in the data. When `stack` is true, `group` should be false.
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for pie chart, such as, [{ category: 'Category A', value: 27 }, { category: 'Category B', value: 25 }].
heightintegerSet the height of the chart, default is 600px.
innerRadiusnumberSet 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.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for radar chart, such as, [{ name: 'Design', value: 70 }, { name: 'Performance', value: 85 }] or [{ name: 'Design', value: 70, group: 'iPhone' }].
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for scatter chart, such as, [{ x: 10, y: 15 }, { x: 20, y: 25 }].
axisXTitlestringSet the x-axis title of chart.
axisYTitlestringSet the y-axis title of chart.
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for sankey chart, such as, [{ source: 'Landing Page', target: 'Product Page', value: 50000 }, { source: 'Product Page', target: 'Add to Cart', value: 35000 }].
heightintegerSet the height of the chart, default is 600px.
nodeAlignstringAlignment of nodes in the sankey chart, such as, 'left', 'right', or 'justify'.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for funnel chart, such as, [{ category: 'Browse Website', value: 50000 }, { category: 'Add to Cart', value: 35000 }, { category: 'Generate Order', value: 25000 }].
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for gauge chart, such as, [{ name: 'CPU Usage', value: 75 }]. Multiple gauges can be displayed.
heightintegerSet the height of the chart, default is 600px.
maxnumberMaximum value of the gauge, default is 100.
minnumberMinimum value of the gauge, default is 0.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for treemap chart, such as, [{ name: 'Design', value: 70, children: [{ name: 'Tech', value: 20 }] }].
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for sunburst chart, such as, [{ name: 'Technology', value: 100, children: [{ name: 'Frontend', value: 60, children: [{ name: 'React', value: 30 }] }] }].
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for heatmap chart, such as, [{ x: 'Mon', y: '12AM', value: 5 }, { x: 'Tue', y: '1AM', value: 3 }].
axisXTitlestringSet the x-axis title of chart.
axisYTitlestringSet the y-axis title of chart.
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for candlestick chart, such as, [{ date: '2023-01-01', open: 100, high: 110, low: 95, close: 105, volume: 10000 }].
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
showVolumebooleanWhether to show volume chart below candlestick. Default is false.
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for boxplot chart, such as, [{ category: 'Category A', value: 10 }, { category: 'Category B', value: 20, group: 'Group A' }].
axisXTitlestringSet the x-axis title of chart.
axisYTitlestringSet the y-axis title of chart.
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *objectData for network graph chart, such as, { nodes: [{ id: 'node1', name: 'Node 1' }], edges: [{ source: 'node1', target: 'node2' }] }
heightintegerSet the height of the chart, default is 600px.
layoutstringLayout algorithm for the graph. Default is 'force'.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *arrayData for parallel chart, such as, [{ name: 'Product A', values: [4.2, 3.4, 2.3, 1.8] }].
dimensions *arrayNames of the dimensions/axes, such as, ['Price', 'Quality', 'Service', 'Value'].
heightintegerSet the height of the chart, default is 600px.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet 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.

ParameterTypeDescription
data *objectTree data structure, such as, { name: 'Root', children: [{ name: 'Child 1' }, { name: 'Child 2' }] }.
heightintegerSet the height of the chart, default is 600px.
layoutstringTree layout type. Default is 'orthogonal'.
orientstringTree orientation. LR=left-to-right, RL=right-to-left, TB=top-to-bottom, BT=bottom-to-top. Default is 'LR'.
outputTypestringThe 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…
themestringSet the theme for the chart, optional, default is 'default'.
titlestringSet the title of the chart.
widthintegerSet the width of the chart, default is 800px.