SQL Chart Builder
Turn your SQL queries into beautiful dynamic charts with a visual SQL builder, live autocomplete and no-code date/input filters.
Choix solide
SQL Chart Builder is a solid plugin choice in 2026, with a few things worth checking first. It runs on 500+ sites, is rated 3.9/5 and was last updated 2 months ago, and scores 67/100 on our health check.
- Testé avec le dernier WordPress (7.1)
- Petite base d'utilisateurs (plus de 500 installations actives)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where SQL Chart Builder stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| charts | #29 |
| mysql | #52 |
| sql | #1 |
| sql chart | #1 |
| visualizer | #9 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 3.9 from 22 reviews
About SQL Chart Builder
From the official readme · v3.0.7Description
The plugin creates beautiful charts based on your SQL queries, then you can use those charts in any part of your website.
You can use both native wp and non-wp mysql tables in your queries.
11 chart types: Pie, Doughnut, Polar Area, Radar, Line, Area, Stepped Line, Bar, Horizontal Bar, Stacked Bar, Scatter
What’s new in 3.0
- A completely redesigned chart builder. No more “nerd-only” settings page: a clean, tabbed UI walks you through Chart & Data → Dynamic Filters → Style → Advanced.
- Visual chart type picker with built-in guides. Every chart type shows a short “when to use it” guide plus a working example query you can insert with one click.
- Live SQL autocomplete. Start typing and the editor suggests SQL keywords (type “S” — get SELECT), your real database table names and real column names. Type
tablename.to see that table’s columns. Press Ctrl+Space for suggestions at any time. - Click-to-build query toolbar. SELECT / COUNT(*) / FROM / WHERE / GROUP BY / ORDER BY / LIMIT buttons plus “Insert table”, “Insert column” and “Insert dynamic tag” dropdowns filled with your actual database schema — build a best-practice query without typing a single word.
- No-code input filters. Add date/number/text filters as simple rows (tag, type, label, default) — the tag dropdown suggests
{tags}already used in your query and columns from its WHERE part. No more memorizing the~/|syntax (a raw editor is still available for pros). One click inserts the{tag}into your query. - Dropdown column mapping. The X/Y axis fields are dropdowns filled with the columns detected in your SQL query — no more guessing column names.
- Color pickers instead of typing hex codes, and a fixed professional default palette instead of random colors.
- Latest Chart.js v4, bundled inside the plugin — no third-party CDN calls, GDPR-friendly.
- 4 new chart types: Radar, Stepped Line, Stacked Bar and Scatter.
- Better front-end design: modern table view, restyled filter form and datepicker.
- Full legacy support: charts created with 2.x keep working unchanged. Deprecated Google-Chart types are automatically mapped to modern equivalents when you open/save the chart.
Comment utiliser
-
Go to Dashboard → My SQL Charts → Add New and give any name to your report.
-
Pick a chart type — read the short guide shown under the type cards, or click “Use this example” to start from a working query.
-
Build your SQL query with the toolbar buttons and autocomplete (real table and column names are suggested), then map the X and Y columns.
-
You can use multiple SQL queries too — just split them with the “;” sign to get comparison charts. You can also pass shortcode arguments into the query: with “select * from wp_posts where ID>{arg1}” the shortcode [gvn_schart_2 id=”2″ arg1=”11″] passes the value in (the builder’s live preview runs without arguments, so test such charts on a page).
-
After Publish/Update you will see the shortcode below the builder. Use it anywhere on your website: pages, posts, widgets, or the “My SQL Charts” Gutenberg block.
-
Check “Show table-view data below the graph” to also render the data as a styled table.
-
In the Input Filters tab, add filters by clicking “+ Add filter” — each one becomes an input (with a datepicker for date types) above the chart at the front-end.
Chart type mini-guide
- Pie / Doughnut — how a total splits into a few parts. One query: label column + numeric column.
- Polar Area — like a pie, but the value controls the radius; great for cyclic data (months, weekdays).
- Radar — compare one or more series across categories arranged in a circle (profiles, ratings).
- Line — trends over time; add more “;”-separated queries for comparison lines.
- Area — a line with the region filled; emphasizes volume.
- Stepped Line — values that change at discrete moments (prices, stock levels).
- Bar / Horizontal Bar — compare categories; horizontal is best for long labels.
- Stacked Bar — how each category total is composed; each “;”-separated query becomes one segment.
- Scatter — correlation between two numeric columns (both X and Y must be numeric).
Input filters (dynamic variables)
Use the visual rows in the Input Filters tab, or the raw format:
variable_name~default_value~variable_label~variable_type | variable_name~default_value~variable_label~variable_type
- variable_name – any single name you want.
- default_value – default value when no variable is chosen by the user
- variable_label – label visible on the form above the chart
- variable_type – number, text or date
- ~ separates variable elements, | separates variables
Example: with the filters “limit_tag~10~Count~number | post_date_tag~2010-07-05~Date Published~date”
you can use “select * from wp_posts where post_date<{post_date_tag} limit {limit_tag}” as the SQL code —
the plugin renders the corresponding inputs above the chart automatically.
Supported built-in dynamic tags: {current_user_id}, {current_user_login}, {current_user_email}, {current_user_display_name}.
Mise en cache
Use [gvn_schart_2_cached id=”1″ expire=”3600″] to cache the rendered chart in a transient. Add &force_sql_cache_reload=1 to the URL to bypass it once (e.g. right after upgrading).
Site Internet
https://guaven.com/my-sql-charts/
Documentation
https://guaven.com/my-sql-charts/#docs
Bug Submission and Forum Support
Please Vote if you liked our plugin
Your votes really help us. Thanks.
Available Filters
apply_filters( ‘guaven_sqlcharts_table_empty_cell’);
apply_filters(‘guaven_sqlcharts_pre_print_vars’);
apply_filters( ‘guaven_sqlcharts_final_output’);
apply_filters(‘guaven_sqlcharts_rendered_sql’);
Installation
- Upload ‘guaven_sqlcharts.zip’ to the ‘/wp-content/plugins/’ directory
- Unzip it.
- Go to Dashboard/Plugins and Activate the plugin.
- Go to “Dashboard/My SQL Charts” to create new charts. Guides are built into the chart builder.
Journal de modifications
3.0.7
- SECURITY: Fixed a stored cross-site scripting issue (CVE-2026-100158): text values returned by the chart query (for example a user’s display name) were written into the chart script with only HTML sanitizing. All query results, labels and scatter points are now emitted as JSON literals, and table-view cells are HTML-escaped.
- SECURITY: Dynamic filter labels, names and types are escaped and validated before output; the dismiss link of the admin recommendation uses a nonce.
- IMPROVED: Code passes the WordPress Plugin Check tool with no errors; remaining intentional direct queries (the plugin’s purpose) are documented inline.
3.0.6
- FIX: Saving a chart failed with “A post type mismatch has been detected.” (and edits appeared to revert) when a dynamic filter was named like a WordPress form field such as post_type. The live preview in the chart builder now renders filter inputs disabled so they are never submitted with the chart.
- IMPROVED: Hint in the Input Filters tab about tag names to avoid.
- FIX: Date/time X axis: labels of dates that are very close together are now placed one below the other instead of overlapping.
3.0.5
- FIX: Date/time X axis on Bar charts: bars now have a fixed, clearly visible width instead of shrinking to the closest pair of dates.
- FIX: Date/time X axis: the axis now labels only the dates present in the data instead of evenly spaced computed dates.
3.0.4
- SECURITY: Chart posts are now administrator-only at the capability level (all gvn_schart capabilities map to manage_options), so Contributors/Authors can no longer create or edit charts through any WordPress entry point such as XML-RPC. All guaven_sqlcharts_* custom fields are protected meta.
- SECURITY: The forbidden-command check now runs on the final SQL after all shortcode arguments and filter values are inserted, “;” is stripped from user-supplied values, and every statement must start with SELECT, WITH, SHOW, DESCRIBE or EXPLAIN. PREPARE/EXECUTE, LOCK, KILL, FLUSH and similar statements were added to the blocked list.
- SECURITY: The cached shortcode now keeps a separate cache entry per user and per dynamic filter value, so a chart using {current_user_*} tags or URL filters can no longer serve one visitor’s result to another.
- SECURITY: The shortcode “params” attribute is validated and can no longer inject JavaScript into the chart script.
- The chart save handler now also requires manage_options and the gvn_schart post type.
3.0.3
- FIX: Using the same shortcode argument tag (e.g. {arg1}) more than once in the SQL, such as in both queries of a comparison chart, broke the chart with a fatal error.
- FIX: The [gvn_schart_2_cached] shortcode ignored arg1..arg19, width, height, table and params attributes; they are now passed through and each set of attributes is cached separately.
- IMPROVED: When the SQL contains {arg} tags, the builder shows the shortcode with the needed attributes and explains that the live preview runs without them.
- NEW: “Scale X axis by date/time” option (Advanced tab) for Bar and Line charts. Points and bars are placed by real elapsed time when the X values are dates (2024-02-23, 2024-02, 2024, 2024-02-23 14:30). Off by default; existing charts are unchanged.
3.0.2
- FIX: “Value labels” option now works for Bar, Horizontal Bar, Stacked Bar, Line, Area, Stepped Line, Radar and Scatter charts (previously only circular charts).
- NEW: The X axis label and Y axis label fields are now shown as real axis titles on Bar, Line and Scatter charts (Y title for single-series charts; multi-series charts keep the names in the legend).
- FIX: Series names containing “&” were cut off (the stored & entity was mistaken for a “;” series separator); labels with quotes or other special characters no longer show HTML entities in the legend or table view.
- IMPROVED: Clearer hints in the chart builder for the label, color and value-label fields.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best SQL Chart Builder alternatives
All charts plugins →FAQ
SQL Chart Builder: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is SQL Chart Builder free?
Yes. SQL Chart Builder is free to download and use from the official WordPress.org plugin directory.
Is SQL Chart Builder safe to use in 2026?
SQL Chart Builder is a solid plugin choice in 2026, with a few things worth checking first. It runs on 500+ sites, is rated 3.9/5 and was last updated 2 months ago, and scores 67/100 on our health check.
How many websites use SQL Chart Builder?
SQL Chart Builder is active on 500+ WordPress websites and has been downloaded 37,392 times since it launched in February 2016. It was downloaded 719 times in the last 30 days.
Does SQL Chart Builder work with WordPress 7.1?
Yes. The developer has tested SQL Chart Builder up to WordPress 7.1.5, the latest release. It requires WordPress 5.0.0 or newer.
When was SQL Chart Builder last updated?
The latest version, 3.0.7, was released on October 3, 2026 (2 months ago).
Who makes SQL Chart Builder?
SQL Chart Builder is developed and maintained by Elvin Haci.
What are the best alternatives to SQL Chart Builder?
The most popular alternatives to SQL Chart Builder are Visualizer (20K+ installs), Chartify (3K+ installs) and M Chart (3K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit






