AI Agent Hub
Back to skills
SQL Data Visualization icon

SQL Data Visualization

Data Analysis Updated 2026.08.30

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 base64 PNGs 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 Plotly to generate self-contained HTML with hover, zoom, and pan, with themes such as powerbi, dark, seaborn, and ggplot2.
  • Workflow fit: pairs with sql-master for query-to-chart work and with sql-report-generator for 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 KPI or 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.