Deer-flow chart-visualization
This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.
git clone https://github.com/bytedance/deer-flow
T=$(mktemp -d) && git clone --depth=1 https://github.com/bytedance/deer-flow "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/public/chart-visualization" ~/.claude/skills/bytedance-deer-flow-chart-visualization && rm -rf "$T"
skills/public/chart-visualization/SKILL.mdChart Visualization Skill
This skill provides a comprehensive workflow for transforming data into visual charts. It handles chart selection, parameter extraction, and image generation.
Workflow
To visualize data, follow these steps:
1. Intelligent Chart Selection
Analyze the user's data features to determine the most appropriate chart type. Use the following guidelines (and consult
references/ for detailed specs):
- Time Series: Use
(trends) orgenerate_line_chart
(accumulated trends). Usegenerate_area_chart
for two different scales.generate_dual_axes_chart - Comparisons: Use
(categorical) orgenerate_bar_chart
. Usegenerate_column_chart
for frequency distributions.generate_histogram_chart - Part-to-Whole: Use
orgenerate_pie_chart
(hierarchical).generate_treemap_chart - Relationships & Flow: Use
(correlation),generate_scatter_chart
(flow), orgenerate_sankey_chart
(overlap).generate_venn_chart - Maps: Use
(regions),generate_district_map
(points), orgenerate_pin_map
(routes).generate_path_map - Hierarchies & Trees: Use
orgenerate_organization_chart
.generate_mind_map - Specialized:
: Multi-dimensional comparison.generate_radar_chart
: Process stages.generate_funnel_chart
: Percentage/Progress.generate_liquid_chart
: Text frequency.generate_word_cloud_chart
orgenerate_boxplot_chart
: Statistical distribution.generate_violin_chart
: Complex node-edge relationships.generate_network_graph
: Cause-effect analysis.generate_fishbone_diagram
: Process flow.generate_flow_diagram
: Tabular data or pivot tables for structured data display and cross-tabulation.generate_spreadsheet
2. Parameter Extraction
Once a chart type is selected, read the corresponding file in the
references/ directory (e.g., references/generate_line_chart.md) to identify the required and optional fields.
Extract the data from the user's input and map it to the expected args format.
3. Chart Generation
Invoke the
scripts/generate.js script with a JSON payload.
Payload Format:
{ "tool": "generate_chart_type_name", "args": { "data": [...], "title": "...", "theme": "...", "style": { ... } } }
Execution Command:
node ./scripts/generate.js '<payload_json>'
4. Result Return
The script will output the URL of the generated chart image. Return the following to the user:
- The image URL.
- The complete
(specification) used for generation.args
Reference Material
Detailed specifications for each chart type are located in the
references/ directory. Consult these files to ensure the args passed to the script match the expected schema.
License
This
SKILL.md is provided by antvis/chart-visualization-skills.
Licensed under the MIT License.