AI Agent Data Visualization Workflow
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @org-02qudk26/data-visualization-zh.
About this skill
Problem
A common failure mode in data visualization is not inability to render a chart, but an agent defaulting to generic templates: bar charts for trends, pie charts for relationships, gaps from missing values, too many colors, unlabeled axes, and long category labels. The harder task is to start from the analytical question and produce charts suitable for reports, slide decks, or dashboards.
How the skill works
The skill gives an agent a structured workflow: inspect variable types, time granularity, category counts, and the relationship the user wants to highlight, then map the goal to a chart form. Use bar charts for category comparisons, line charts for temporal trends, scatter plots for continuous variable relationships, histograms or KDE plots for distributions, box or violin plots for group distributions, heatmaps for correlation matrices, stacked bars or pie charts for composition, and plotly for interactive exploration.
Key capabilities include:
- Static charts: use matplotlib for precise control over axes, legends, annotations, and export details, and use seaborn for statistical plotting with sensible defaults.
- Interactive charts: use plotly or plotly.express to render HTML with hover, zoom, and pan.
- Production details: maintain colorblind-friendly palettes, human-readable number formats, unit labels, and plot dimensions; for print-oriented output, target 150+ DPI.
- Edge cases: aggregate long bar categories into “Other” or use a treemap; handle overlapping scatter points with opacity, jitter, or density plots; interpolate or break line-chart gaps; apply log scales to skewed data and label the transformation.
Boundaries
Best for structured-data exploration, report figures, dashboard prototypes, and cases where the chart type should be derived from the question. It is not a BI tool and does not define business metrics. If metric definitions are unclear, data quality is poor, or real-time high-interaction needs dominate, clean the data and define requirements first. For composition problems with many categories, prefer stacked bars, faceting, or small multiples over adding more colors.
Use Cases
- During monthly review, convert sales tables into report PNG charts.
- In product reviews, generate scatter plots with trend lines from relevance questions.
- Embed zoomable, hover-enabled Plotly HTML in an internal dashboard.
- When revenue data is skewed, output line charts labeled with log scales.
Best For
- Data analysts: turn business tables into report-ready charts.
- Product managers: explain metric trends with line charts in review decks.
- Operations analysts: convert channel sales tables into comparison bar charts.
- Front-end engineers: embed interactive Plotly charts in internal dashboards.
Related Skills
Analyzes smart customer-service chat logs with semantic clustering to generate word clouds, Top K frequent questions, and personalized guess-you-ask recommendations.
Maps natural-language Reddit requests to KeyAPI REST workflows, validates endpoint contracts against official docs, and executes search, detail, comment, ranking, and report tasks.
Schedules fetching from NEP and custom academic sites, filters and ranks papers by keywords, generates Chinese summaries, and pushes Feishu cards with local download archiving.
Browser-based CSV/TXT visualizer with multi-Y-axis curves, smoothing, and PNG/JSON/CSV export.