How To Add Charts And Graphs To WordPress

Learn how to create, manage and embed stunning dynamic and interactive charts and graphs into your WordPress posts and pages with a few simple steps …

How To Add Charts And Graphs To WordPress

Embedding Graphs Into A WordPress Post Or Page

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.

How To Create Dynamic Charts In WordPress Pages And Posts

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

Visualizer - WordPress Plugin

Practical Tip

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

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 …

WordPress Step-By-Step Tutorial

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

Install Visualizer - WP Plugin

Locate Visualizer in the search results section and click Install Now

Install Visualizer - WP Plugin

Click OK to proceed …

Install WP Plugin: Visualizer

Activate the plugin after successfully installing it …

Install Visualizer - WordPress Plugin

You can also activate the plugin in the Plugins section …

Install WP Plugin: Visualizer

Once your plugin has been activated, click on Library

Install Visualizer

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

Install Plugin

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

Visualizer

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 …

Visualizer - WordPress Plugin

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 …

Visualizer

The selected graph/chart type will pop up in a lightbox.

The next step is to upload a CSV file that contains your data …

WordPress Plugin: Visualizer

Info

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 …

Visualizer

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‘ …

WP Plugin: Visualizer

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

Visualizer Plugin For WordPress

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

WP Plugin: Visualizer

Upload CSV File From The Web

Visualizer Plugin For WordPress

Important Info

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‘ …

Visualizer Plugin For WordPress

Depending on the chart or graph type you have selected, the plugin displays a number of customization options and settings …

Visualizer - WordPress Plugin

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

Visualizer - WordPress Plugin

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).

Visualizer Plugin For WordPress

Once you’re satisfied with how your chart or graph looks, click Create Chart

Visualizer - WP Plugin

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

Visualizer Plugin For WordPress

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 …

Visualizer Plugin For WordPress

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

Visualizer Plugin For WordPress

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

WordPress Plugin: Visualizer

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) …

WordPress Plugin: Visualizer

Next, place your mouse cursor where you want to insert your visual element into your content and click on Add Media

@@@

Click on ‘Visualizations‘ …

Visualizer

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

Visualizer

This adds a shortcode for the element into your content …

WP Plugin: Visualizer

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

Publishing A WordPress Post

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

Visualizer - WordPress Plugin

Your item will display in the location you specified …

WP Plugin: Visualizer

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

WordPress Plugin: Visualizer

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.

Tutorial

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

***