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

Create Colorful Charts And Graphs In Pages And Posts In WordPress

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

Using graphs and charts is great for making statistical data a whole lot easier to grasp.

You can present information with tables, but if you want your audience to try and interpret complex information with figures, percentages or relationships more easily, then graphs and charts are perfect for helping them visualize the data.

Creating Charts And Graphs In WordPress Pages And Posts

Graphs and charts help you present complex data so people can more easily interpret it!

If you need to present information visually and dynamically on your WordPress site like charts and graphs, this tutorial will show you exactly how to create attractive and updateable charts to your posts that:

  • Your web visitors can interact with
  • Lets you upload data from your computer or a web-based data source
  • Dynamically resizes for mobile users

Visualizer

Tip

If you plan to display visual data like pie charts, comparison bars or trending graphs which contain information that is not going to change (e.g. historical data), an easier way to display this data is to create the graphs or charts using a desktop application, convert these into images and then simply insert the image files into your posts.

Use WordPress Chart & Graph Plugins

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

Fortunately, there is a plugin for WordPress that is simple to install, easy-to-use and allows you to not only create beautiful and dynamic charts and graphs, it also lets you populate your charts and graphs with dynamic information.

Visualizer

Visualizer Plugin For WordPress

Plugin URL

You can install the plugin in your WordPress dashboard (see a little further down the page), or access and download WordPress Visualizer from the link below:

http://wordpress.org/plugins/visualizer

Visualizer Description

WP Visualizer is a simple, easy to use and powerful tool that allows you to create, manage and embed beautiful and dynamic charts and graphs into your WordPress posts and pages in a few mouse clicks.

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 additional components are needed.

The plugin also contains a variety of charts optimized for all 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 the look and feel of your website. Various options are available for each chart that let you 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 site visitors can see your charts and graphs on their mobile web browsers without having to install additional plugins.

Plugin Installation

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

WP Step-By-Step Tutorial

In the Add Plugins page type in search for “visualizer” and click enter …

Install Visualizer - WordPress Plugin

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

Install Visualizer Plugin For WordPress

Click OK to proceed …

Install Visualizer - WordPress Plugin

Activate the plugin after installing it …

Install Visualizer Plugin For WordPress

You can also activate the plugin in the Plugins section …

Install WP Plugin: Visualizer

Once the plugin has been activated, click on Library

Install Visualizer Plugin For WordPress

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

How To Intall Plugin

This takes you to the plugin’s Visualizer Library section …

Visualizer

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

Your next step is to add add charts and graphs to the library.

How To Configure The Visualizer Plugin

To add a chart or graph to the library, click on the ‘Add New’ button …

Visualizer - WP Plugin

A gallery displaying all of the built-in kinds of graphs available will come up on your screen.

Select the type of chart or graph you would like to create and click on the ‘Next’ button …

Visualizer

Your graph/chart type will open up in a new window.

The next step is to upload a CSV file containing the data you want to populate your chart or graph with …

WordPress Plugin: Visualizer

Important

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. boolean, datetime, etc.)

The screenshot below shows how to format your data …

Visualizer Plugin For WordPress

If you are not sure how to format your data CSV, simply study 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 a CSV file and data from your computer select ‘From Computer‘ …

Visualizer

Locate and select your file and click on ‘Open‘ …

Visualizer - WP Plugin

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

Visualizer Plugin For WordPress

Upload CSV File From The Web

WP Plugin: Visualizer

Info

For a 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 then click ‘Next‘ …

Visualizer

Depending on the chart or graph type you’ve selected, the plugin will display a number of customization options …

Visualizer

The WordPress Visualizer plugin gives you total control of your chart or graph, and updates your display in real time …

Visualizer

For example, the pie chart offers many configurable options, such as:

  • General Settings – Configure settings for the chart’s title, 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).

Visualizer - WP Plugin

Once you’re satisfied with the way your graph or chart is looking, click on the ‘Create Chart’ button …

Visualizer - WordPress Plugin

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

Visualizer

Note that each element is given a unique ID displayed as a shortcode. As you will see in a moment, this lets you embed charts and graphs into your WordPress pages quickly …

Visualizer

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

Visualizer - WP Plugin

After a new graph or chart has been added to the ‘Visualizer Library’, you can edit its details, clone it, or delete it …

Visualizer

Visualizer Plugin Usage

Once you’ve created a chart or graph and added it to the Visualizer Library, it’s very easy to add it to a post or page.

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

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 insert into your content and click on the “insert” icon …

Visualizer

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

Visualizer Plugin For WordPress

After you have added your visual element, click on Publish to publish (or update) your page or post …

Publishing A WordPress Post

Once the post/page has been updated, click ‘View post’ to see the results …

WP Plugin: Visualizer

You will see the chart or graph in the location you specified …

Visualizer Plugin For WordPress

As mentioned previously, the plugin also displays responsive graphs and charts for mobile viewing …

Visualizer - WordPress Plugin

As you can see, WordPress Visualizer allows you to add and customize dynamic charts and graphs in your content. You can modify your data and the changes will automatically be reflected throughout your site. This is one of the great benefits of using the Visualizer plugin if you’re adding dynamic 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 the Visualizer plugin for WordPress.

For tutorials on editing, copying, deleting and adding data to your charts, visit the site below:

Congratulations! Now you know how to easily add colorful and interactive charts and graphs to WordPress.

***

"I was absolutely amazed at the scope and breadth of these tutorials! The most in-depth training I have ever received on any subject!" - Myke O'Neill, DailyGreenPost.com

***

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