SQL Chart Builder

Plugin Banner

SQL Chart Builder

by Guaven Labs

Download
Description

The plugin can create 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.

Pie chart, Donut chart, Line chart, Bar chart, Column chart, Area chart

How to use

  1. Give any name to your report.

  2. Use our preinstalled chart or create new one yourself: choose desired chart type, type sql query,
    enter field names, labels and then press to Publish/Update

  3. 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
    type “select * from wp_posts where ID>{arg1}” then it you can pass arg1 value to the query with [gvn_schart_2 id=”2″ arg1=”11″] shortcode.

  4. After update/save you will see needed shortcode below there. You can use that shortcode anywhere in your website: in pages, posts, widgets etc.

  5. Just check “Show table-view data below the graph” in order to get table-list view below each chart.

  6. Using “Dynamic Filters” you can create dynamic variables inside SQL code. It also creates corresponding dynamic input form above each chart.

Dynamic filters

Use this format: variable_name~default_value~variable_label~variable_type | variable_name~default_value~variable_label~variable_type etc.

  • variable_name – any single name you want.
  • default_value – default value when no any variable chosen by a user
  • variable_label – Label which would be visible at a form above the chart
  • variable_type – number, text or date
  • ~ is a separator between variable elements.
  • | is a separator between variables

For example if to put

limit_tag~10~Count~number | post_date_tag~2010-07-05 17:25:18~Date Published~date,

then you can use this SQL code

select * from wp_posts where post_date<{post_date_tag} limit {limit_tag}

in SQL CODE field.
{post_date_tag} and {limit_tag} would be replaced with dynamic variables.

So, the plugin will automatically recognize it and put corresponding selectboxes above the chart.

Website

https://guaven.com/my-sql-charts/

Documentation

https://guaven.com/my-sql-charts/#docs

Bug Submission and Forum Support

Contact Page

Please Vote if you liked our plugin

Your votes really helps 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’);

  1. Upload ‘guaven_sqlcharts.zip’ to the ‘/wp-content/plugins/’ directory
  2. Unzip it.
  3. Go to Dashboard/Plugins and Activate the plugin.
  4. Go to “Dashboard/My SQL Charts” to create new charts. You will also see howtouse guide texts there.
  1. <p>Screenshot 1</p>

    Screenshot 1

  2. <p>Screenshot 2</p>

    Screenshot 2

  3. <p>Screenshot 3</p>

    Screenshot 3

  4. <p>Screenshot 4</p>

    Screenshot 4

  5. <p>Screenshot 5</p>

    Screenshot 5

Great lightweight plugin for visualizations

By pamal on August 15, 2023

Great free plugin with very fast support when needed, good performance, lightweight. Absolutely recommended.
My favorite for real time visualizations of information from wordpress database. I use it instead of embedding Google Looker Studio reports.

Be careful, wait for update

By eicken71 on February 12, 2023

Current version of SQL Chart Builder not compatible with PHP 8 and WP 6.1.1. It will block your website immediately after installing.

Highly recommended chart plugin

By speleo on September 26, 2022

A very powerful yet simple to use solution to display chart data directly from SQL queries. Support is first class and very quick if required. I road tested a number of other plugins before choosing SQL Chart Builder and this was definately the leader. 110% recommend.

how to show values directly on a bar chart

By missvanna on September 23, 2022

how to show values directly on a bar chart

Very easy to create charts directly from DB

By tnightingale on August 11, 2022

This plugin is exactly what I was looking for - a way to display charts of user data on a membership site. It's the only plugin I could find in the repository that makes charts directly from sql, without requiring a pro version or adding a ton of other functionality. After a quick run through of the SQL tutorials on W3Schools, I was creating just the charts I needed. Will be using this on other sites.

mySql connectivity

By raypierce on July 6, 2022

This is a great plugin with great support and help. I needed assistance and they were right there with the solution. Too many of these plugins offer next to nothing in their free version and then say upgrade to the PRO version to do stuff you really want to do. This plugin does what those ask a premium for. As soon as this plugin develops a pro version, I'm getting on board!! I tried a bunch of the chart plugins and this one worked great out of the box. Skip the others.

Can't handle UTF-8 Characters

By dizwell on March 3, 2022

It's easy to use and produces attractive graphs from simple SQL queries... but it cannot properly display any text on the axis labels that contains "foreign" characters. The name "Röntgen", for example, will be displayed "R & ouml;ntgen", with HTML code descriptions of o-umlaut rather than with the actual ö character. This is a serious defect... but there are no other equivalent graphing plugins available, so one must make do! It's incredibly easy to use and it produces attractive graphs from simple SQL queries: a lot of other plugins tend to require you to supply data in separate text or CSV files. I did once have a problem with the graphs not displaying UTF-8 characters properly on the axes of graphs (so things like 'Röntgen' would be displayed as "R & ouml;ntgen", with HTML code descriptions of o-umlaut rather than with the actual ö character. But that got fixed around version 2.2.0. With that fix in place, there isn't a tool quite like it anywhere else and it has made my personal website much, much more useful in consequence. The support I received back in 2019 was a bit iffy -but the support has improved by leaps and bounds since then, and they would now appear to be responsive and helpful, which is great. Because of the improved support and the fixing of the UTF-8 issue, I've increased my rating for the plugin from an acceptable 3-star to a 'I'm a fan' 5-star one, as of March 3rd 2022.

Best SQL chart plugins

By jlowell03 on March 2, 2022

I created report that look so very professional with this plugin. My client is so so happy and say it the best report they seen in their career. If you know how to massage this plugins you will get something that will make your client fall in love with your work.

I had such high hopes 🙁

By puravida1976 on November 1, 2019

Unfortunately, this plugin is only useful for very specific use-cases, because it supports ONLY two database fields (i.e. X and Y axis, which almost never makes sense for the supported pie chart type but anyway). The external MySQL connector works well, so that part is great, but the shortcode doesn't output the charts and the "preview" doesn't honor the width and height settings. So, this could have been great, with just a little more love and attention. Ah well.

Height, width and color

By harutyunyangg on September 20, 2019

Height, width and color are not working.

= 2.3.7=
* Fixed small security issue
* More escape/sanitize related security improvements

= 2.3.5=

  • 2 bug fixes on chart rendering X axis values

= 2.3.4=

  • Backend improvements on existing features

= 2.3.3=

  • Fixed: PHP warning issue

= 2.3.2=

  • Added: Enable/disable Stackedness of bar charts

= 2.3.1=

  • Added: Enable/disable Legend section in Charts

= 2.3.0=

  • Added: One new chart – Polar Area

  • Added: New small feature – Round Y Axis tick values

  • Improvement: Hashing DB Remote password

= 2.2.2=

  • Added: Custom color support for PIE charts

  • Added: Insert custom chart parameters via Shortcode attributes

= 2.2.1=

  • Small improvements

= 2.2.0=

  • Added width-height support

  • Added “Zero point” to line chart

  • Bugfixes

= 2.1.2=

  • New feature: Remote Database Connection

  • Setting custom & fixed colors for charts

  • Small improvement in table-view component

= 2.1.1=

  • Fixed small bug in Area Charts

  • Chart library has been updated to the latest version

= 2.1.0=

  • Dynamic filters added: You can use dynamic date/number/text filters at frontend.

  • Table-view support added.

= 2.0.4=

Now you can add custom arguments to the SQL query.

= 2.0.0=

  • New non-Google Local Charts added.

  • Use multiple mysql queries in one graph.

= 1.0.0=

  • Uploaded to WordPress.org

= 1.0.2=

  • Little fixes

= 1.0.5=

  • Added WP 4.7 compatibility

  • Fixed “multiple charts in one page” issue.

Back to top