How To Add Charts And Graphs To WordPress

You’ve heard the old adage “a picture is worth a thousand words.” This is certainly true when you are trying to present or explain complex data.
Using charts and graphs can help to break up technical or difficult text, and make statistical data and information much simpler to digest.
You can present data using tables, but if you want people to try and interpret complex information with figures, percentages or comparisons easily, then graphs and charts let you present the data in a meaningful and intelligent way that can be quickly understood.

Charts and graphs help explain complex data so your audience can more easily interpret it!
If you want to display dynamic visual content on your WordPress site using charts and graphs, this tutorial will show you exactly how to create eye-catching and interactive charts to WordPress that:
- Your visitors can interact with
- Lets you upload data from your computer or a web-based source of data
- Is dynamically responsive for mobile users

![]()
If you are displaying visual data like bar charts, comparison charts or trending graphs that contain static information (e.g. historical data), an easier option is to create the graphs or charts using a desktop application, convert these into jpg or png images and then simply add your image files to your post or page.
Use WordPress Chart & Graph Plugins
If you want to easily insert dynamic bars and pie charts into WordPress with no coding skills required, the easiest way to do this is to use a plugin.
Fortunately, there is a free plugin for WordPress sites that is simple to install, easy-to-use and allows you to not only create stunning and interactive charts and graphs, it also lets you populate your charts and graphs with updateable information.
Visualizer Plugin For WordPress

Plugin URL
You can install the plugin in your WordPress dashboard (see further down the page), or download Visualizer here:
http://wordpress.org/plugins/visualizer
Visualizer Plugin Description
WordPress Visualizer is an easy-to-use and powerful plugin for WordPress that lets you create, manage and embed stunning and dynamic charts into your WordPress posts and pages in just a few simple steps.
The plugin 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 additional add-ons are needed.
Visualizer also contains a variety of built-in 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
WordPress 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 allow you to customize their look.
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 site visitors can see your charts and graphs on their mobile browsers without having to install additional software.
How To Install Visualizer
From your WordPress admin area, select Plugins > Add New from the navigation sidebar menu …

In the Add Plugins page type “visualizer” into the search field and hit enter …

Locate Visualizer in the search results section and click Install Now …

Click OK to proceed …

Activate the plugin after successfully installing it …

You can also activate the plugin in the Plugins section …

Once your plugin has been activated, click on Library …

You can also get to the plugin’s ‘library’ screen by choosing Media > Visualizer Library from the admin menu …

This takes you to the plugin’s Visualizer Library settings screen …

When you first install the plugin, the library will contain no charts.
Your next step is to add add charts and graphs to your plugin library.
How To Configure The Visualizer Plugin
To add a graph or chart to the library, click on the ‘Add New’ button …

A gallery displaying all of the types of graphs available will load on your screen.
Select the chart or graph type you would like to create and click on the ‘Next’ button …

The selected graph/chart type will pop up in a lightbox.
The next step is to upload a CSV file that contains your data …

![]()
When creating your CSV data file, ensure that:
- The first row contains your column headings.
- The second row contains the series type (e.g. boolean, timeofday, etc.)
The screenshot below shows how to format your data as explained above …

If you are not sure how to format your CSV file, just use the sample provided 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 a CSV file and data from your hard drive select ‘From Computer‘ …

Use the browser to locate and select your file and click on ‘Open‘ …

The plugin imports your data from the CSV file and displays it using the graph/chart type selected …

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, go here:
After importing your data, check that all of the 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 you have selected, the plugin displays a number of customization options and settings …

The plugin gives you complete control over your information, and updates your display in real time …

For example, the pie chart offers various configurable options, including:
- 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 a 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’re satisfied with how your chart or graph looks, click Create Chart …

Your chart or graph will now be added to the Visualizer ‘Library’ …

Note that each element is given a unique ID displayed as a shortcode. As you will see shortly, this lets you add charts and graphs to your content quickly …

Charts and graphs added to the Visualizer Library can be accessed by type …

After an item has been added to the ‘Visualizer Library’, you can edit it, duplicate it, or delete it …

Visualizer Plugin Usage
After creating a new chart or graph and adding it to the Visualizer Library, adding it to a post 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 your content and click on Add Media …

Click on ‘Visualizations‘ …

Find the chart or graph you want to insert into your content and click on the “insert” icon …

This adds a shortcode for the element into your content …

Once you have finished adding your visual element, click on Publish to publish (or update) your content …

After updating the post, click ‘View post’ to see the end result …

Your item will display in the location you specified …

As mentioned previously, the plugin also displays responsive visual elements for viewing on mobile devices …

As you can see, the Visualizer plugin allows you to insert and customize dynamic charts and graphs in your content. You can modify your data and the changes will automatically be reflected throughout your website. This is very convenient if you’re working with interactive graph information in WordPress.
![]()
The plugin developers have created a series of step-by-step tutorials you can refer to for ways to edit, customize and use WordPress Visualizer.
For tutorials on editing, cloning, deleting and adding data to your charts, refer to the site below:
Congratulations! Now you know how to easily create appealing and mobile-responsive charts and graphs in WordPress.
***
"This is an awesome training series. I have a pretty good understanding of WordPress already, but this is helping me to move somewhere from intermediate to advanced user!" - Kim Lednum
***