The quickest way to add WordPress Charts from Database – MYSQL

1778 Views

Introduction

In this article, I’ll show you the quickest way to add Best WordPress Charts from Database – MYSQL and PHP.

As we learned earlier what is dynamic data? and what are the commonly used data sources, it’s time to use them. In this blog, we will convert our static chart to a dynamic one using “SQL Builder” 

  • Follow the below steps to learn how to convert static data charts into dynamic ones using “SQL Builder” – 

Step 1 –  Selecting the Chart 

Open the Graphina – WordPress chart plugin and select the chart where you want to display the data of Google Sheets.

For example, choose the Line chart 

Step 2 – Changing Data option from Manual to Dynamic 

Best WordPress Charts from Database

Select the chart data option and change the time from “manual” to “dynamic” and we can see the message of the no data available that’s because we have not selected the data source till now. 

Step 3 – Changing Dynamic Data to SQL

Select the dynamic data option and change the type to “SQL builder”

There we will have the space to write the query Now you will see the changes in the chart.

Step 4 – Selection Of table

Click on “select mode,” there is an option for the table too. So select a table.

Click on “select table,” it will show multiple tables listed in the dropdown list.

Select one table from the list and then the result can be seen instantly

Step 5 – Final Step of Adding WordPress from Database to SQL

In the final step click on the “external” in SQL builder.

Now after choosing External Option, we will select the data table from the below dropdown. 

Click on the option “WordPress 2” and then edit SQL Raw query

And then from below in the “Y-axis column”, select that we want to be in the column. Data can be seen from external in our line chart 

And then you can see the data of SQL Builder is displayed with the least amount of effort.

Hereby, all the steps are covered for adding Best WordPress Charts from Database – SQL 

As we have seen many commonly used data sources in the previous blogs, we will see all of them one by one nicely and how to use them in Graphina.

Conclusion

Now, you know how to create Best WordPress Charts from Database – MYSQL. You will learn more with us, while you have the nicest product of our Graphina – WordPress Pugin

Don’t Forget to Subscribe to our YouTube channel to get an instant video tutorial. Follow us on Facebook and Instagram to get Quick Tips, Educational Posts, infographics, and more. 

Was this article helpful?
YesNo
Share This Article:
Sagar Soni
Sagar Soni

Sagar is a Content Head, Writer, and creative thinker at Iqonic Design. He often deals with multiple tasks at same time. Well! He is all rounder in Writing skills. And whenever you do not find him writing he is either studying about his counselling psychology or often exploring new places and goofing around with ambition achieving friends and plan on making new money moves.

Articles: 259