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.
Chart 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
generate_line_chart(trends) orgenerate_area_chart(accumulated trends). Usegenerate_dual_axes_chartfor two different scales. - Comparisons: Use
generate_bar_chart(categorical) orgenerate_column_chart. Usegenerate_histogram_chartfor frequency distributions. - Part-to-Whole: Use
generate_pie_chartorgenerate_treemap_chart(hierarchical). - Relationships & Flow: Use
generate_scatter_chart(correlation),generate_sankey_chart(flow), orgenerate_venn_chart(overlap). - Maps: Use
generate_district_map(regions),generate_pin_map(points), orgenerate_path_map(routes). - Hierarchies & Trees: Use
generate_organization_chartorgenerate_mind_map. - Specialized:
generate_radar_chart: Multi-dimensional comparison.generate_funnel_chart: Process stages.generate_liquid_chart: Percentage/Progress.generate_word_cloud_chart: Text frequency.generate_boxplot_chartorgenerate_violin_chart: Statistical distribution.generate_network_graph: Complex node-edge relationships.generate_fishbone_diagram: Cause-effect analysis.generate_flow_diagram: Process flow.generate_spreadsheet: Tabular data or pivot tables for structured data display and cross-tabulation.
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
args(specification) used for generation.
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.
You Might Also Like
Related Skills

coding-agent
Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.
openclaw
add-uint-support
Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.
pytorch
at-dispatch-v2
Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.
pytorch
skill-writer
Guide users through creating Agent Skills for Claude Code. Use when the user wants to create, write, author, or design a new Skill, or needs help with SKILL.md files, frontmatter, or skill structure.
pytorch
implementing-jsc-classes-cpp
Implements JavaScript classes in C++ using JavaScriptCore. Use when creating new JS classes with C++ bindings, prototypes, or constructors.
oven-sh
implementing-jsc-classes-zig
Creates JavaScript classes using Bun's Zig bindings generator (.classes.ts). Use when implementing new JS APIs in Zig with JSC integration.
oven-sh