SQL Data Visualization
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_64e5b706/sql-dataviz.
About this skill
Problem it solves
SQL queries often stop at result tables: the fields are correct, but stakeholders still ask for trends, shares, anomalies, and root causes. Pasting raw tables into a report is not clear enough, and writing chart code from scratch can interrupt the analysis flow. SQL Dataviz turns existing SQL results into deliverable charts and reduces the manual bridge between querying and visualization.
How it works
- Input and output: takes SQL query results or structured data and emits
base64PNGs that can be embedded in Markdown, email, web pages, and reports. - Chart coverage: covers common analysis scenarios, including trend comparison, part-whole views, distributions, metric monitoring, statistical analysis, geographic heat maps, and hierarchical shares.
- Interactive output: uses
Plotlyto generate self-contained HTML withhover,zoom, andpan, with themes such aspowerbi,dark,seaborn, andggplot2. - Workflow fit: pairs with
sql-masterfor query-to-chart work and withsql-report-generatorfor chart-to-report work. - Degraded mode: without dependencies, it can still provide chart selection, data-format guidance, design principles, and color suggestions, but it cannot render PNG, interactive HTML, or dashboards.
Boundaries and caveats
- It requires a Python environment; when dependencies are unavailable, only advisory and guidance features remain.
- For very large datasets, aggregate, sample, or use high-density scatter first instead of rendering raw rows directly.
- Match chart type to the business question: trends use line charts, shares use stacked or donut charts, root causes use decomposition or key-influencer views, and target achievement uses
KPIor gauge visuals. - Styles can be customized through
ChartConfig, but axis labels, units, tags, and empty-value handling should still be verified before delivery.
Use Cases
- Convert SQL query results into PNG trend and comparison charts for weekly reports.
- Select chart types and color schemes based on business goals without a chart library.
- Build funnel, stacked column, or decomposition tree views for sales conversion analysis.
- Generate self-contained `Plotly` HTML charts with `hover`, `zoom`, and `pan`.
Best For
- Data analysts who need to embed SQL results directly in Markdown, email, or web pages.
- Business operations owners producing weekly reports, KPI dashboards, or metric reviews.
- BI engineers using decomposition trees, anomaly detection, or key-influencer views for root-cause analysis.
- Product managers validating chart selection, data format rules, and design principles in constrained environments.
Related Skills
Scrapes JD search results for product titles, prices, sales, and stores, then exports verified data to UTF-8 CSV.
An A-share market monitor using Sina Finance API for real-time quotes, price and percentage alerts, daily logging, and scheduled checks.
Turn pasted or queried Xiaohongshu notes into a research memo covering title patterns, structure, quoted comments, and follow-up angles; public lookups are optional and confirmed before paid execution.
A universal base component that automatically launches the Edge browser and connects the BrowserSkill extension, ensuring readiness for web scraping and browser automation tasks.