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

How To Create Beautiful Graphs And Charts In Posts In WordPress

You’ve heard the old saying “a picture is worth a thousand words.” This is certainly true when you are presenting or explaining complex data.

Using charts and graphs is a great way to break up content that contains a disproportionate amount of text, and make technical or statistical data a whole lot easier to digest.

You can present data with tables, but if you want people to try and make sense of complex data with figures, trends and relationships more easily, then graphs and charts are perfect for helping them understand the data.

How To Create Charts And Graphs In A WordPress Page

Charts and graphs help present complex information so your audience can more easily understand it!

Need to add charts or graphs to WordPress? This tutorial shows you how to use WP Visualizer – an easy-to-use and powerful tool that allows you to create, manage and embed stunning and dynamic charts into your WordPress posts and pages that:

  • Your visitors can engage with
  • Allows you to upload graph or chart data from your hard drive or a web-based data source
  • Is dynamically responsive for viewing on mobile devices

WordPress Plugin: Visualizer

Practical Tip

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

Use WordPress Chart & Graph Plugins

If you want to add interactive bar charts and graphs to WordPress pages and posts 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 great-looking and interactive graphs and charts, it also lets you populate your charts and graphs with updatable information.

Visualizer

WP Plugin: Visualizer

Visualizer URL

You can install the plugin in your WP dashboard (see a little further below), or download the Visualizer plugin here:

http://wordpress.org/plugins/visualizer

Visualizer Plugin Description

The Visualizer plugin is a simple, easy to use and powerful tool that lets you create, manage and embed eye-catching and interactive charts and graphs into your WordPress posts and pages in just 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 extra components 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

Visualizer is a flexible and customizable plugin, 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 let you 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 site visitors can see your charts and graphs on their mobile devices without requiring the installation of extra software.

Plugin Installation

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

How To Intall Plugin

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

Install WP Plugin: Visualizer

Locate the item in the search results screen and click Install Now

Install Visualizer

Click OK to proceed …

Install Visualizer

Activate the plugin …

Install Visualizer Plugin For WordPress

You can also activate the plugin in the Plugins area …

Install Visualizer

After the plugin has been activated, click on Library

Install WordPress Plugin: Visualizer

You can get to the plugin’s ‘library’ screen by selecting Media > Visualizer Library from the dashboard menu …

Installing Plugin

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

Visualizer - WP Plugin

When you first install the plugin, the library will contain no charts.

The next step is to add the charts and graphs to your library that you will want to display in your pages and posts.

How To Configure Visualizer

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

WordPress Plugin: Visualizer

A page will appear on your screen displaying all the different kinds of charts available.

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

WP Plugin: Visualizer

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

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

Visualizer - WordPress Plugin

Info

When creating your CSV data file, ensure that:

  • The first row contains your column headings.
  • The second row includes the series type (e.g. string, date, etc.)

The screenshot below shows how to format your data …

Visualizer Plugin For WordPress

If you are unsure about how to format your CSV file, simply download the sample provided with the plugin.

Once you have done this, 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 and data from your hard drive select ‘From Computer‘ …

Visualizer Plugin For WordPress

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

WordPress Plugin: Visualizer

The plugin imports the data from the CSV file and displays it using the graph/chart type you have previously chosen …

Visualizer - WordPress Plugin

Upload CSV File From The Web

Visualizer - WP Plugin

Useful Information

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

Visualizer - WordPress Plugin

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

Visualizer Plugin For WordPress

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

WP Plugin: Visualizer

For example, the pie chart offers various 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 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 are happy with the look of your chart or graph, click Create Chart

Visualizer

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

Visualizer Plugin For WordPress

Note that every element is given a unique ID displayed in a shortcode. As you will see very soon, this allows you to easily insert charts and graphs into your content …

Visualizer

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

Visualizer - WordPress Plugin

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

WP Plugin: Visualizer

Visualizer Usage

After creating a element and adding it to the Visualizer Library, it’s simple to insert it into a 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‘ …

Visualizer - WordPress Plugin

Select the element to be inserted into your content and click on the “insert” icon …

WordPress Plugin: Visualizer

This inserts a shortcode into your content …

Visualizer - WP Plugin

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

Publishing A WordPress Post

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

Visualizer

The visual element will show up in the location you specified …

Visualizer Plugin For WordPress

As mentioned previously, Visualizer also displays responsive charts for mobile device browsing …

Visualizer - WordPress Plugin

As you can see, the Visualizer plugin allows you to insert and customize dynamic charts and graphs in your content. You can change your data and the changes will automatically be reflected wherever you have inserted your charts, graphs, comparison bars , etc. in your website. This is a real time-saver if you’re working with interactive chart data in WordPress.

Tutorial

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

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

Congratulations! Now you know how to insert beautiful and mobile-responsive charts and graphs into your WordPress pages.

***

"I love the way your email series "Infinite Web Content Creation Training Series" is documented and presented. It is very absorbing and captivating. The links and tutorials are interesting and educational. This has motivated me to rewrite my content following the concepts I am learning from the email series." - Mani Raju, www.fortuneinewaste.com

***

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