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

Inserting Stunning Graphs Into Pages And Posts In WordPress

You’re probably familiar with the saying “a picture is worth a thousand words.” This certainly applies when you’re trying to present or explain complex data.

Charts and graphs help to break up long or boring information, and make technical or statistical data more easily digestible.

You can present information using tables, but if you want your audience to try and interpret complex information with figures, percentages and comparisons easily, then charts and graphs are perfect for helping them interpret your information.

Creating Attractive Charts And Graphs In WordPress

Graphs and charts help you explain complex data so people can more easily understand it!

If you need to learn how to display information visually and dynamically on your WordPress site like graphs and charts, this tutorial will show you exactly how to create and add great-looking and interactive charts to your WordPress posts that:

  • Your visitors can engage with
  • Allows you to upload data from your computer or an online data source
  • Is responsive for mobile screens

Visualizer

Useful Tip

If you plan to display visual data like bar charts, comparison graphs or trending graphs containing static information (e.g. historical data), an easier way to display your data is to create the charts or graphs using a desktop application, convert these into .jpg or .png files and then simply insert your image files into your content.

Use WordPress Chart & Graph Plugins

If you want to add interactive bar charts and pie graphs to WordPress posts and pages with no coding skills required, the easiest way to do this is to use a plugin.

Fortunately, there is a great free plugin for WordPress users that is simple to install, easy-to-use and allows you to not only create attractive and mobile-responsive graphs and charts, it also lets you populate your charts and graphs with updatable data.

Visualizer Plugin For WordPress

WP Plugin: Visualizer

Visualizer URL

You can install the plugin in your WordPress dashboard (we will explain how to do this a little further down the page), or download the WordPress Visualizer plugin from the link below:

http://wordpress.org/plugins/visualizer

Plugin Description

WP Visualizer is an easy-to-use and powerful plugin for WordPress that lets you create, manage and insert interactive graphs into your WordPress posts and pages with a few mouse clicks.

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 addons are needed.

WordPress Visualizer also provides a variety of charts that are optimized to address all your data visualization needs, including:

  • Line chart
  • Area chart
  • Bar chart
  • Column chart
  • Pie chart
  • Geo chart
  • Gauge chart
  • Candlestick chart
  • Scatter chart

The plugin 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 the look and feel of your website. A number of options are available for each chart that allow you to fully customize their look and feel.

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 blog or site visitors can see your charts and graphs on their mobile device browsers without requiring the installation of any extra software.

Plugin Installation

Inside your WP dashboard, select Plugins > Add New from the main admin menu …

WordPress Plugin Tutorial

In the Add Plugins screen type in “visualizer” into the search field and click enter …

Install Visualizer

Locate the entry in the search results section and click Install Now

Install Visualizer Plugin For WordPress

Click OK to continue …

Install Visualizer Plugin For WordPress

Activate the plugin …

Install Visualizer Plugin For WordPress

You can also activate the plugin in the Plugins section …

Install WP Plugin: Visualizer

Once your plugin has been activated, click on Library

Install WordPress Plugin: Visualizer

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

Installing WP Plugins

This brings up the plugin’s Visualizer Library options page …

WordPress Plugin: Visualizer

When you first install the plugin, this section will be empty.

The next step is to add add charts and graphs to the plugin library.

How To Configure The Plugin

To add a graph or chart to the library, click on Add New

Visualizer

A visual gallery displaying all of the built-in types of graphs and charts available will come up 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 open up in a new window.

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

Visualizer Plugin For WordPress

Useful Information

When creating your CSV data file, make sure that:

  • The first row contains the column headings.
  • Your second row includes the series type (e.g. boolean, timeofday, etc.)

The screenshot below shows how to format your data as required …

WP Plugin: Visualizer

If you are unsure about how to format your data CSV, simply refer to the sample CSV file supplied with the plugin.

Next, select the data source (‘From Computer’ or ‘From Web’) in the ‘Upload CSV File’ section.

Upload CSV File From Computer

To upload the CSV file and data from your hard drive select ‘From Computer‘ …

WP Plugin: Visualizer

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

WordPress Plugin: Visualizer

The plugin will import the data from the CSV file and display it using the graph/chart type selected …

Visualizer Plugin For WordPress

Upload CSV File From The Web

Visualizer Plugin For WordPress

Important

To learn 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 the information is correct (if not, click on the ‘Back’ button and reupload a data file with the right data), and click ‘Next‘ …

Visualizer

Depending on the chart or graph type you’ve selected, the plugin will display various customization options and settings …

Visualizer - WP Plugin

The WordPress Visualizer plugin gives you full control of 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 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).

WP Plugin: Visualizer

Once you’re happy with the way your chart or graph appears, click Create Chart

Visualizer - WordPress Plugin

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

Visualizer Plugin For WordPress

Note that new elements are given a unique ID displayed as a shortcode. As you will see shortly, this allows you to add graphs and charts to your WordPress posts and pages quickly and easily …

Visualizer Plugin For WordPress

Graphs and charts added to the Visualizer Library can easily be accessed by type …

Visualizer

After adding an element to the ‘Visualizer Library’, you can edit it, duplicate it, or delete it …

Visualizer Plugin For WordPress

Visualizer Usage

After you’ve created a new graph or chart and added it to Visualizer, it’s easy to add it to your pages or posts.

First, create a new post or page (or open an existing one) …

WP Plugin: Visualizer

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

@@@

Click on ‘Visualizations‘ …

WP Plugin: Visualizer

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

WP Plugin: Visualizer

This will place a shortcode for the element into your content …

Visualizer - WP Plugin

Once you have finished adding the element, click on Publish to publish (or update) your page or post …

Publishing A WordPress Post

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

WP Plugin: Visualizer

You will see your chart in your content …

Visualizer Plugin For WordPress

As mentioned previously, Visualizer also displays responsive elements for mobile users …

WP Plugin: Visualizer

As you can see, WordPress Visualizer lets you insert and customize dynamic charts and graphs in your content. You can edit your data and your changes will automatically be reflected throughout your site. This is one of the great benefits of using the Visualizer plugin if you’re working with interactive chart information in WordPress.

Tutorial

The plugin developers have created a number of tutorials you can use to learn how to edit, customize and use WordPress Visualizer.

For tutorials on editing, cloning, deleting and adding data to your charts, refer to the website below:

Congratulations! Now you know how to insert eye-catching pie charts and graphs into 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

***

Originally published as How To Add Charts And Graphs To WordPress.