Back to Skills

chart-visualization

将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片

288stars21forksUpdated 5/18/2026

Security Assessment

Safe(100/100)
Security Score100/100

About chart-visualization

The chart-visualization skill is designed to transform raw data into visually compelling charts and graphs, enabling users to easily interpret and present complex information. By leveraging the AntV API through curl requests, this skill automates the creation of a wide range of chart types, including bar charts, line charts, pie charts, scatter plots, radar charts, Sankey diagrams, flowcharts, and mind maps. It solves the challenge of manually designing charts, providing a streamlined workflow from data input to visual output, with the resulting chart image URLs returned in Markdown format for easy embedding.

This skill offers extensive capabilities for data representation. Users can select chart types based on the nature of their data, such as time series, comparison, distribution, hierarchy, relationships, or specialized chart types like funnels, word clouds, and liquid charts. It supports detailed customization through parameters like theme, width, height, title, texture style, and axis labels for applicable charts. Each chart type has specific data formatting requirements, ensuring accurate representation of metrics, categories, or relationships. The skill also accommodates complex visualizations, including multi-series dual-axis charts, hierarchical trees up to three levels, and network or flow diagrams with nodes and edges.

Target users include data analysts, business professionals, educators, and developers who require efficient and precise data visualization without manual chart design. It is ideal for situations such as reporting, presentations, educational materials, or exploratory data analysis where visual clarity enhances understanding. Users can quickly generate charts that reflect trends, distributions, relationships, and hierarchies, making it a versatile tool for both technical and non-technical audiences seeking high-quality, ready-to-use visualizations.

FAQ

How do I generate a chart using this skill?

You provide your data along with a desired chart type, and the skill constructs a JSON request to the AntV API via curl. The API returns a chart image URL, which can be embedded using Markdown.

Which chart types are supported?

The skill supports a wide range, including comparison charts (bar, column, waterfall), trend charts (line, area, scatter), distribution charts (boxplot, histogram, violin, funnel), proportion charts (pie, liquid, word-cloud), hierarchy charts (organization-chart, mind-map, treemap, Sankey), relationship charts (network-graph, Venn), flowcharts (flow-diagram, fishbone-diagram), radar charts, and spreadsheets.

Can I customize the appearance of charts?

Yes. You can adjust theme (default, academy, dark), width, height, title, texture style, and for charts with axes, axis labels. Some chart types support additional options like stacking, grouping, or inner radius for pies.

Are there any limitations on data structure?

Each chart type requires data in a specific JSON format, including fields like time, value, category, group, nodes, or edges. Hierarchical and tree-like charts are limited to a depth of three levels for children nodes.

Is this skill compatible with all programming environments?

It is compatible with environments that can execute curl commands and handle JSON. It does not require additional programming libraries, but internet access is necessary to reach the AntV API endpoint.

Install chart-visualization

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill