How To Add Charts And Graphs To WordPress
You’ve heard the old saying “a picture is worth a thousand words.” This is certainly true when you are presenting or explaining data.
Using graphs and charts is useful for making statistical data more easily digestible.
You can present data using tables, but if you want people to try and make sense of complex data with figures, trends or relationships quickly, then charts and graphs let you present your data in a meaningful and intelligent way that can be quickly and easily understood.
Graphs and charts help explain complex information so people can more easily interpret it!
Need to add charts or graphs to WordPress? This tutorial shows you how to use WP Visualizer – a simple, easy to use and powerful tool that lets you create, manage and embed great-looking charts into your WordPress posts and pages that:
- Your web visitors can interact with
- Allows you to upload data from your computer or a web-based source of data
- Will resize dynamically for mobile screens
If you plan to display visual data like pie charts, comparison graphs or trending graphs that contain static information (e.g. historical data), a simple method you can use is to create your charts or graphs using a desktop application, convert these into .jpg or .png images and then simply insert your files and an image into your content.
Use WordPress Chart & Graph Plugins
If you want to easily create dynamic bars and graphs in WordPress with no coding skills required, the easiest way to do this is to use a plugin.
Fortunately, there is a great free WordPress plugin that is simple to install, easy-to-use and allows you to not only create stunning and interactive graphs and charts, it also lets you populate your charts and graphs with updateable information.
Visualizer
Plugin URL
You can install the plugin inside your WP dashboard (see further down the page), or download the Visualizer plugin here:
http://wordpress.org/plugins/visualizer
Visualizer Plugin Description
Visualizer is an easy-to-use and powerful plugin that allows you to create, manage and embed stunning graphs into your WordPress posts and pages in just a few simple steps.
WordPress Visualizer uses Google Visualization API to render charts, which support cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases, and are based on pure HTML5/SVG technology (adopting VML for old IE versions), so no extra addons are needed.
WordPress Visualizer also comes with a variety of charts that are optimized to address your data visualization needs, including:
- Line chart
- Area chart
- Bar chart
- Column chart
- Pie chart
- Geo chart
- Gauge chart
- Candlestick chart
- Scatter chart
Visualizer is also flexible and customizable, allowing you to use Google Chart Tools with their default setting, or configure an extensive set of options to match your site’s design. Various options are available for each chart that let you customize their settings.
Additionally, charts are rendered using HTML5/SVG technology to provide cross-browser compatibility (including VML for older IE versions) and cross-platform portability to iPhones, iPads and Android devices. Your visitors can see your charts and graphs on their mobile device browsers without requiring the installation of any additional plugins.
Plugin Installation
From your WordPress admin area, select Plugins > Add New from the dashboard menu …
In the Add Plugins page type “visualizer” into the search field and hit enter …
Locate the entry in the search results area and click Install Now …
Click OK to go ahead …
Activate the plugin after installing it …
You can also activate the plugin in the Plugins section …
After your plugin has been activated, click on Library …
You can also get to the plugin’s ‘library’ screen by selecting Media > Visualizer Library in the admin menu …
This takes you to the plugin’s Visualizer Library screen …
When you first install the plugin, the library will contain no charts.
The next step is to add add charts and graphs to your library.
How To Configure The Visualizer Plugin
To add a new chart or graph to the Visualizer library, click on Add New …
A page will load on your browser displaying all the kinds of charts and graphs available.
Select the graph or chart type you would like to create and click on the ‘Next’ button …
Your graph/chart type will pop up in a new window.
The next step is to upload a CSV file that contains your data …
When creating your CSV data file, make sure that:
- Your first row contains the column headings.
- The second row includes the series type (e.g. number, timeofday, etc.)
The screenshot below shows how to format your data …
If you are not sure how to format your CSV file, simply download the sample spreadsheet supplied with the plugin.
Once you have completed this step, select your data source (‘From Computer’ or ‘From Web’) in the ‘Upload CSV File’ section.
Upload CSV File From Computer
To upload the CSV file from your computer select ‘From Computer‘ …
Locate and select your file and click on ‘Open‘ …
The plugin imports the data and displays it using the graph/chart type chosen …
Upload CSV File From The Web
For a step-by-step tutorial that explains how to create, save and publish data to a Visualizer chart or graph using Google Spreadsheet, see the article below:
After importing the data, check that all of your information is correct (if not, click on the ‘Back’ button and reupload a new data file containing the correct data), and click ‘Next‘ …
Depending on the chart or graph type selected, the plugin will display a number of customization settings and options …
The plugin gives you full control of your chart or graph, and updates your display in real time …
For example, the pie chart offers many configurable options, such as:
- General Settings – Configure chart title settings, font styles, tooltip, and legend.
- Pie Settings – Create 3D pie charts, draw slices counterclockwise, set the text content displayed on the slice, create a “donut” pie chart, rotate the chart’s “start” angle and set the slice border color.
- Residue Settings – Set the ‘Visibility Threshold’ (the slice relative part, below which a slice will not show individually.), ‘Residual Slice Label’ (the label for the combination slice that holds all slices below slice visibility threshold, e.g. “Other”), and ‘Residue Slice Color’.
- Slice Settings – Customize the ‘Slice Offset’ (how far to separate the slice from the rest of the pie), and ‘Slice Color’.
- Layout & Chart Area – Configure the layout (total size of chart) including the width and height of the chart as a number of percentage, background color for the main area of the chart and the chart border width and color, and the placement and size of the chart area (where the chart itself is drawn, excluding axis and legends).
Once you are happy with the look of your graph or chart, click Create Chart …
Your graph or chart will now be added to the ‘Visualizer Library’ section …
Note that each element is given a unique ID displayed as a shortcode. As you will see very soon, this lets you add graphs and charts to your pages and posts quickly …
Graphs and charts added to the Visualizer Library can be accessed by their type …
After a new item has been added to the ‘Visualizer Library’, you can edit it, duplicate it, or delete it …
Visualizer Usage
After creating a chart or graph and adding it to the Visualizer Library, adding it to your content is very simple.
First, create a new post or page (or open an existing one) …
Next, place your mouse cursor where you want to insert your visual element into the content and click on the ‘Add Media‘ button …
Click on ‘Visualizations‘ …
Select the chart or graph you want to add to your content and click the “insert” icon …
This inserts a shortcode for the element into your content …
After you have added the element, click on Publish to publish (or update) your post or page …
After updating your post/page, click ‘View post’ to see the result …
You will see your visual element in the location where you’ve inserted the shortcode …
As mentioned previously, the plugin also displays responsive graphs for mobile browsing …
As you can see, Visualizer lets you add and customize dynamic charts and graphs in your content. You can edit your data and the changes will automatically be reflected wherever you have inserted your charts, graphs, comparison bars , etc. in your site. This is great if you’re adding dynamic chart information in WordPress.
The plugin developers have created a number of tutorials you can refer to to learn how to edit, customize and use the Visualizer plugin for WordPress.
For additional tutorials on editing, copying, deleting and adding data to your charts, refer to the site below:
Congratulations! Now you know how to easily insert stunning and dynamic bar charts and graphs into WordPress.
***
"I have used the tutorials to teach all of my clients and it has probably never been so easy for everyone to learn WordPress ... Now I don't need to buy all these very expensive video courses that often don't deliver what they promise." - Stefan Wendt, Internet Marketing Success Group
***