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

Adding Graphs And Charts To Pages In WordPress

You’ve no doubt heard the saying “a picture is worth a thousand words.” This certainly applies when you’re presenting or explaining complex data.

Using charts and graphs is a great way to make statistical data and information more easily digestible.

You can use tables to present data, but if you want your audience to try and make sense of complex data with figures, trends or comparisons easily, then graphs and charts allow you to present your information in a meaningful and intelligent way that can be quickly and easily understood.

Create Graphs And Charts In A Post In WordPress

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

If you want to learn how to display information visually and dynamically on your WordPress site using charts and graphs, this tutorial will show you how to create and add beautiful and updateable charts to your pages that:

  • Your web visitors can interact with
  • Lets you upload data from your hard drive or a web-based source of data
  • Resizes dynamically for mobile screens

WordPress Plugin: Visualizer

Tip

If you are displaying visual data like pie charts, comparison data or trending graphs containing static information (e.g. historical data), an easier option is to create your graphs or charts using a desktop application, convert these into images and then simply add your files and an image to your pages.

Use WordPress Chart & Graph Plugins

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

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

Visualizer – WP Plugin

WP Plugin: Visualizer

Plugin URL

You can install the plugin from your WordPress dashboard (see further down the page), or access and download the Visualizer plugin here:

http://wordpress.org/plugins/visualizer

Visualizer Description

The Visualizer plugin is a simple, easy to use and powerful tool that lets you create, manage and insert eye-catching charts and graphs into your WordPress posts and pages in just 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 extra plugins 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 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. A number of 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 blog or site visitors can see your charts and graphs on their mobile devices without having to install additional software.

How To Install Visualizer

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

WP Plugins

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

Install Visualizer Plugin For WordPress

Locate Visualizer in the search results section and click Install Now

Install Visualizer Plugin For WordPress

Click OK to continue …

Install Visualizer

Activate the plugin after successfully installing it …

Install Visualizer Plugin For WordPress

You can also activate the plugin in the Plugins page …

Install WP Plugin: Visualizer

Once 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 your admin menu …

WP Plugin Tutorial

This brings up the plugin’s Visualizer Library page …

Visualizer Plugin For WordPress

When you first install the plugin, the library contains no charts.

Your next step is to add add charts and graphs to your plugin library.

How To Configure Visualizer

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

Visualizer

A gallery displaying all of the different types of charts available will come up on your screen.

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

Visualizer Plugin For WordPress

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

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

WP Plugin: Visualizer

Important

When creating your CSV data file, ensure that:

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

The screenshot below shows how to format your data as per the requirements above …

Visualizer

If you are unsure about how to format your CSV file, just study the sample CSV file 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 file and then click on ‘Open‘ …

Visualizer - WordPress Plugin

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

Visualizer - WordPress Plugin

Upload CSV File From The Web

Visualizer

Important Info

To learn 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 data file containing the right data), and click ‘Next‘ …

Visualizer

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

Visualizer - WP 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 many configurable options, including:

  • 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 - WordPress Plugin

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

Visualizer

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

WP Plugin: Visualizer

Note that new visual elements are given a unique ID displayed in a shortcode. As you will see very soon, this lets you embed charts and graphs into your WordPress pages quickly and easily …

WP Plugin: Visualizer

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

Visualizer Plugin For WordPress

After adding a new element to the ‘Visualizer Library’, you can edit its details, clone it, or trash it …

Visualizer - WP Plugin

Plugin Usage

After creating a chart or graph and adding it to Visualizer, it’s easy to insert it into your posts or pages.

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 the ‘Add Media‘ button …

@@@

Click on ‘Visualizations‘ …

Visualizer Plugin For WordPress

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

Visualizer - WP Plugin

This adds a shortcode for the element into your content …

Visualizer

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

Publishing A WordPress Post

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

WP Plugin: Visualizer

Your graph will show up in the location where you have added the shortcode …

Visualizer Plugin For WordPress

As mentioned earlier, Visualizer also displays responsive charts and graphs for mobile device browsers …

Visualizer - WordPress Plugin

As you can see, the Visualizer plugin allows you to add and customize dynamic charts and graphs in your content. You can edit your data and the changes will automatically be reflected wherever you have inserted your charts, graphs, comparison bars , etc. in your website. This is great if you’re working with interactive graph data 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, go to the site below:

Congratulations! Now you know how to insert eye-catching and mobile-responsive pie charts and graphs into WordPress with WordPress Visualizer plugin.

***

"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

***

Recommended Video Courses For WordPress Users

How To Set Up A Forum On WordPressHow To Set Up A Forum On WordPress

Learn how to set up a forum for your visitors, prospects, customers, members, or affiliates using WordPress.

More info: How To Set Up A Forum On WordPress

Recommended Video Courses For WordPress Users

Build An e-Commerce Store With WordPressBuild An e-Commerce Store With WordPress

Learn how to set up an e-commerce store on your WordPress site using e-commerce platforms like WooCommerce and Easy Digital Downloads.

More info: Build An e-Commerce Store With WordPress

Recommended Video Courses For WordPress Users

How To Optimize WordPressHow To Optimize WordPress

Learn how to optimize your WordPress site and improve your page loading speed.

More info: How To Optimize WordPress

Recommended Video Courses For WordPress Users

How To Back Up & Restore WordPress SitesHow To Back Up & Restore WordPress Sites

Learn how to safely and automatically backup your WordPress files and database and how to easily restore your WordPress site if something were to happen.

More info: How To Back Up & Restore WordPress Sites

Recommended Video Courses For WordPress Users

Using S2 MemberUsing S2 Member

Learn how to set up and configure a WordPress membership site using the S2 Member free WordPress membership plugin.

More info: Using S2 Member

Author: Martin Aranovitch

Martin Aranovitch is the founder of WPCompendium.org and the author of The Small Business Digital Manager. WPCompendium.org provides hundreds of FREE tutorials that show you how to use WordPress to grow your business online with no coding skills required! Get our FREE "101+ WordPress Tips, Tricks & Hacks For Non-Techies" e-course with loads of useful WordPress tips!

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