{"id":42078,"date":"2016-02-25T06:49:49","date_gmt":"2016-02-25T06:49:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sql-chart-builder\/"},"modified":"2026-03-13T07:00:11","modified_gmt":"2026-03-13T07:00:11","slug":"sql-chart-builder","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/sql-chart-builder\/","author":7377845,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.3.7.2","stable_tag":"2.3.8","tested":"6.9.4","requires":"5.0.0","requires_php":"","requires_plugins":null,"header_name":"SQL Chart Builder","header_author":"Guaven Labs","header_description":"","assets_banners_color":"ffffff","last_updated":"2026-03-13 07:00:11","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/guaven.com\/service\/small-thankyou-premium-support-service\/","header_plugin_uri":"http:\/\/guaven.com\/updatepusher","header_author_uri":"http:\/\/guaven.com\/","rating":3.9,"author_block_rating":0,"active_installs":600,"downloads":32090,"num_ratings":21,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"Elvin.Haci","date":"2020-07-20 20:31:16"},"1.0.3":{"tag":"1.0.3","author":"Elvin.Haci","date":"2020-07-20 20:31:16"},"2.2.2":{"tag":"2.2.2","author":"Elvin.Haci","date":"2022-05-06 11:37:51"},"2.3.0":{"tag":"2.3.0","author":"Elvin.Haci","date":"2022-05-06 11:37:51"},"2.3.1":{"tag":"2.3.1","author":"Elvin.Haci","date":"2022-05-09 07:45:46"},"2.3.2":{"tag":"2.3.2","author":"Elvin.Haci","date":"2022-07-21 04:35:37"},"2.3.3":{"tag":"2.3.3","author":"Elvin.Haci","date":"2022-07-22 07:29:19"},"2.3.4":{"tag":"2.3.4","author":"Elvin.Haci","date":"2022-10-27 21:19:52"},"2.3.5":{"tag":"2.3.5","author":"Elvin.Haci","date":"2022-11-02 06:34:36"},"2.3.6":{"tag":"2.3.6","author":"Elvin.Haci","date":"2024-12-03 09:12:22"},"2.3.7":{"tag":"2.3.7","author":"Elvin.Haci","date":"2024-12-14 18:21:17"},"2.3.7.1":{"tag":"2.3.7.1","author":"Elvin.Haci","date":"2025-01-17 11:07:14"},"2.3.7.2":{"tag":"2.3.7.2","author":"Elvin.Haci","date":"2025-01-17 11:07:14"},"2.3.8":{"tag":"2.3.8","author":"Elvin.Haci","date":"2026-03-13 07:00:11"}},"upgrade_notice":[],"ratings":{"1":4,"2":2,"3":1,"4":0,"5":14},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2343690,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2343690,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2343690,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2343690,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"guaven-sqlcharts\/gvn-chart-gutenberg":{"name":"guaven-sqlcharts\/gvn-chart-gutenberg","title":"My SQL Charts"}},"tagged_versions":["1.0.2","1.0.3","2.2.2","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.7.1","2.3.7.2","2.3.8"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2727756,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2343690,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2727756,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2343690,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2727756,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2727756,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"<p>Screenshot 1<\/p>","2":"<p>Screenshot 2<\/p>","3":"<p>Screenshot 3<\/p>","4":"<p>Screenshot 4<\/p>","5":"<p>Screenshot 5<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4108,1627,1625,235340,5643],"plugin_category":[59],"plugin_contributors":[81159],"plugin_business_model":[],"class_list":["post-42078","plugin","type-plugin","status-publish","hentry","plugin_tags-charts","plugin_tags-mysql","plugin_tags-sql","plugin_tags-sql-chart","plugin_tags-visualizer","plugin_category-utilities-and-tools","plugin_contributors-elvinhaci","plugin_committers-elvinhaci"],"banners":{"banner":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/banner-772x250.png?rev=2343690","banner_2x":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/banner-1544x500.png?rev=2343690","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/icon-128x128.png?rev=2343690","icon_2x":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/icon-256x256.png?rev=2343690","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/screenshot-1.png?rev=2727756","caption":"<p>Screenshot 1<\/p>"},{"src":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/screenshot-2.png?rev=2343690","caption":"<p>Screenshot 2<\/p>"},{"src":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/screenshot-3.png?rev=2727756","caption":"<p>Screenshot 3<\/p>"},{"src":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/screenshot-4.png?rev=2343690","caption":"<p>Screenshot 4<\/p>"},{"src":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/screenshot-5.png?rev=2727756","caption":"<p>Screenshot 5<\/p>"},{"src":"https:\/\/ps.w.org\/sql-chart-builder\/assets\/screenshot-6.png?rev=2727756","caption":""}],"raw_content":"<!--section=description-->\n<p>The plugin can create beautiful charts based on your SQL queries, then you can use those charts in any part of your website.\nYou can use both native wp and non-wp mysql tables in your queries.<\/p>\n\n<h3>Pie chart, Donut chart, Line chart, Bar chart, Column chart, Area chart<\/h3>\n\n<h4>How to use<\/h4>\n\n<ol>\n<li><p>Give any name to your report.<\/p><\/li>\n<li><p>Use our preinstalled chart or create new one yourself: choose desired chart type, type sql query,\nenter field names, labels and then press to Publish\/Update<\/p><\/li>\n<li><p>You can use multiple SQL queries too. Just split them by ; sign. You can also add shortcode argument to SQL query. For example if you\ntype \"select * from wp_posts where ID&gt;{arg1}\" then it you can pass arg1 value to the query with  [gvn_schart_2 id=\"2\" arg1=\"11\"] shortcode.<\/p><\/li>\n<li><p>After update\/save you will see needed shortcode below there. You can use that shortcode anywhere in your website: in pages, posts, widgets etc.<\/p><\/li>\n<li><p>Just check \"Show table-view data below the graph\" in order to get table-list view below each chart.<\/p><\/li>\n<li><p>Using \"Dynamic Filters\" you can create dynamic variables inside SQL code. It also creates corresponding dynamic input form above each chart.<\/p><\/li>\n<\/ol>\n\n<h4>Dynamic filters<\/h4>\n\n<p>Use this format: variable_name~default_value~variable_label~variable_type | variable_name~default_value~variable_label~variable_type etc.<\/p>\n\n<ul>\n<li>variable_name - any single name you want.<\/li>\n<li>default_value - default value when no any variable chosen by a user<\/li>\n<li>variable_label - Label which would be visible at a form above the chart<\/li>\n<li>variable_type - number, text or date<\/li>\n<li>~ is a separator between variable elements.<\/li>\n<li>| is a separator between variables<\/li>\n<\/ul>\n\n<p>For example if to put<\/p>\n\n<p>limit_tag~10~Count~number | post_date_tag~2010-07-05 17:25:18~Date Published~date,<\/p>\n\n<p>then you can use this SQL code<\/p>\n\n<p>select * from wp_posts where post_date&lt;{post_date_tag} limit {limit_tag}<\/p>\n\n<p>in SQL CODE field.\n{post_date_tag} and {limit_tag} would be replaced with dynamic variables.<\/p>\n\n<p>So, the plugin will automatically recognize it and put corresponding selectboxes above the chart.<\/p>\n\n<h4>Website<\/h4>\n\n<p><a href=\"https:\/\/guaven.com\/my-sql-charts\/\">https:\/\/guaven.com\/my-sql-charts\/<\/a><\/p>\n\n<h4>Documentation<\/h4>\n\n<p><a href=\"https:\/\/guaven.com\/my-sql-charts\/#docs\">https:\/\/guaven.com\/my-sql-charts\/#docs<\/a><\/p>\n\n<h4>Bug Submission and Forum Support<\/h4>\n\n<p><a href=\"https:\/\/guaven.com\/contact\/solution-request\/\">Contact Page<\/a><\/p>\n\n<h4>Please Vote if you liked our plugin<\/h4>\n\n<p>Your votes really helps us. Thanks.<\/p>\n\n<h3>Available Filters<\/h3>\n\n<p>apply_filters( 'guaven_sqlcharts_table_empty_cell');<\/p>\n\n<p>apply_filters('guaven_sqlcharts_pre_print_vars');<\/p>\n\n<p>apply_filters( 'guaven_sqlcharts_final_output');<\/p>\n\n<p>apply_filters('guaven_sqlcharts_rendered_sql');<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload 'guaven_sqlcharts.zip' to the '\/wp-content\/plugins\/' directory<\/li>\n<li>Unzip it.<\/li>\n<li>Go to Dashboard\/Plugins and Activate the plugin.<\/li>\n<li>Go to \u201cDashboard\/My SQL Charts\u201d  to create new charts. You will also see howtouse guide texts there.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<p>= 2.3.8=\n* Security fix: Patched SQL injection vulnerability in Dynamic Filter Variables feature. User-supplied GET parameters are now properly sanitized using sanitize_text_field() and esc_sql(), and the () bypass loophole has been removed for user input. Credits: WPScan team for responsible disclosure.<\/p>\n\n<p>= 2.3.7=\n* Fixed small security issue\n* More escape\/sanitize related security improvements<\/p>\n\n<p>= 2.3.5=<\/p>\n\n<ul>\n<li>2 bug fixes on chart rendering X axis values<\/li>\n<\/ul>\n\n<p>= 2.3.4=<\/p>\n\n<ul>\n<li>Backend improvements on existing features<\/li>\n<\/ul>\n\n<p>= 2.3.3=<\/p>\n\n<ul>\n<li>Fixed: PHP warning issue<\/li>\n<\/ul>\n\n<p>= 2.3.2=<\/p>\n\n<ul>\n<li>Added: Enable\/disable Stackedness of bar charts<\/li>\n<\/ul>\n\n<p>= 2.3.1=<\/p>\n\n<ul>\n<li>Added: Enable\/disable Legend section in Charts<\/li>\n<\/ul>\n\n<p>= 2.3.0=<\/p>\n\n<ul>\n<li><p>Added: One new chart - Polar Area<\/p><\/li>\n<li><p>Added: New small feature - Round Y Axis tick values<\/p><\/li>\n<li><p>Improvement: Hashing DB Remote password<\/p><\/li>\n<\/ul>\n\n<p>= 2.2.2=<\/p>\n\n<ul>\n<li><p>Added: Custom color support for PIE charts<\/p><\/li>\n<li><p>Added: Insert custom chart parameters via Shortcode attributes<\/p><\/li>\n<\/ul>\n\n<p>= 2.2.1=<\/p>\n\n<ul>\n<li>Small improvements<\/li>\n<\/ul>\n\n<p>= 2.2.0=<\/p>\n\n<ul>\n<li><p>Added width-height support<\/p><\/li>\n<li><p>Added \"Zero point\" to line chart<\/p><\/li>\n<li><p>Bugfixes<\/p><\/li>\n<\/ul>\n\n<p>= 2.1.2=<\/p>\n\n<ul>\n<li><p>New feature: Remote Database Connection<\/p><\/li>\n<li><p>Setting custom &amp; fixed colors for charts<\/p><\/li>\n<li><p>Small improvement in table-view component<\/p><\/li>\n<\/ul>\n\n<p>= 2.1.1=<\/p>\n\n<ul>\n<li><p>Fixed small bug in Area Charts<\/p><\/li>\n<li><p>Chart library has been updated to the latest version<\/p><\/li>\n<\/ul>\n\n<p>= 2.1.0=<\/p>\n\n<ul>\n<li><p>Dynamic filters added: You can use dynamic date\/number\/text filters at frontend.<\/p><\/li>\n<li><p>Table-view support added.<\/p><\/li>\n<\/ul>\n\n<p>= 2.0.4=<\/p>\n\n<p>Now you can add custom arguments to the SQL query.<\/p>\n\n<p>= 2.0.0=<\/p>\n\n<ul>\n<li><p>New non-Google Local Charts added.<\/p><\/li>\n<li><p>Use multiple mysql queries in one graph.<\/p><\/li>\n<\/ul>\n\n<p>= 1.0.0=<\/p>\n\n<ul>\n<li>Uploaded to Wordpress.org<\/li>\n<\/ul>\n\n<p>= 1.0.2=<\/p>\n\n<ul>\n<li>Little fixes<\/li>\n<\/ul>\n\n<p>= 1.0.5=<\/p>\n\n<ul>\n<li><p>Added WP 4.7 compatibility<\/p><\/li>\n<li><p>Fixed \"multiple charts in one page\" issue.<\/p><\/li>\n<\/ul>","raw_excerpt":"Turn Your SQL Queries to Beautiful Dynamic Charts- Pie, Line, Area, Donut, Bar Charts with date\/input filters.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42078"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/elvinhaci"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42078"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42078"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42078"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42078"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42078"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}