How To Add Charts And Graphs To WordPress

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

Adding Graphs And Charts To WordPress Posts

No doubt you’re familiar with the old saying “a picture is worth a thousand words.” This certainly applies when you are presenting or explaining complex data.

Using graphs and charts is useful for breaking up content containing loads of text, and making data much simpler to understand.

You can use tables to present data, but if you want people to try and make sense of complex information with figures, trends and relationships more easily, then charts and graphs let you present your data in an intelligent and meaningful way that can be quickly understood.

How To Embed Charts Into Posts And Pages In WordPress

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

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

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

Visualizer - WP Plugin

Tip

If you are displaying visual data like bar charts, comparison data or trending graphs containing information that is not going to change (e.g. historical data), an easier option is to create your graphs or charts using an image editing application, convert these into jpg and png files and then simply insert the files and an image into your post or page.

If you want to easily add dynamic bars and pie charts to WordPress, however, (especially if you want to be able to do this with no code editing skills required, then a simple way to do this is to use a plugin.

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

WordPress Plugin: Visualizer

Visualizer Plugin For WordPress

Visualizer URL

You can install the plugin inside your WP dashboard (we will explain how to do this a little further below), or download WP Visualizer here:

http://wordpress.org/plugins/visualizer

Visualizer Description

WordPress Visualizer is a simple, easy to use and powerful tool that allows you to create, manage and insert great-looking and mobile-responsive 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 plugins or add-ons are needed.

Visualizer also comes with 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

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. Various options are available for each chart that allow you to further customize their settings.

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 having to install additional software.

Plugin Installation

From your WP administration area, select Plugins > Add New from the navigation sidebar menu …

Install Plugins

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

Install WordPress Plugin: Visualizer

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

Install Visualizer Plugin For WordPress

Click OK to proceed …

Install WP Plugin: Visualizer

Activate the plugin after installing it …

Install Visualizer Plugin For WordPress

You can also activate the plugin in the Plugins area …

Install Visualizer Plugin For WordPress

After the plugin has been activated, click on Library

Install Visualizer

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

WP Step-By-Step Tutorial

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

WP Plugin: Visualizer

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

Your next step is to add the charts and graphs to your library that you plan to insert into your content.

Visualizer Configuration

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

Visualizer Plugin For WordPress

A visual gallery displaying all the types of graphs available will load on your screen.

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

Visualizer - WP Plugin

Your graph/chart type will pop up in a lightbox.

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

Visualizer

Info

When creating your CSV data file, ensure that:

  • The first row includes 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 per the requirements above …

WordPress Plugin: Visualizer

If you are unsure about how to format your CSV file, just study the sample file that comes with the plugin.

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

Upload CSV File From Computer

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

Visualizer

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

Visualizer - WP Plugin

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

WordPress Plugin: Visualizer

Upload CSV File From The Web

Visualizer Plugin For WordPress

Useful Information

To learn how to create, save and publish data to a Visualizer chart or graph using Google Spreadsheet, go here:

How To Populate Data Using Google Spreadsheet

After importing your data, make sure 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‘ …

WP Plugin: Visualizer

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

Visualizer Plugin For WordPress

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

WordPress Plugin: Visualizer

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 - WP Plugin

Once you’re satisfied with the look of your graph or chart, click on the ‘Create Chart’ button …

Visualizer

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

WordPress Plugin: Visualizer

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

Visualizer - WP Plugin

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

Visualizer Plugin For WordPress

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

Visualizer - WordPress Plugin

Visualizer Plugin Usage

After creating a new element and adding it to the Library, adding it to a post or page is quite 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 the content and click on the ‘Add Media‘ button …

@@@

Click on ‘Visualizations‘ …

Visualizer - WordPress Plugin

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

Visualizer - WordPress Plugin

This inserts a shortcode into your content …

Visualizer

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

Publishing A WordPress Post

After publishing the page, click ‘View post’ to see it …

Visualizer Plugin For WordPress

Your post or page will display the element in the location where you have inserted the shortcode …

Visualizer - WP Plugin

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

WP Plugin: Visualizer

As you can see, WordPress Visualizer allows you to add and customize dynamic charts and graphs in your content. You can update your data and your changes will automatically be reflected wherever you have inserted your charts, graphs, comparison bars , etc. in your website. This makes adding interactive graph data in WordPress very easy.

Tutorial

The developers of this plugin have created a number of step-by-step 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 site below:

WordPress Visualizer – Additional Tutorials

Congratulations! Now you know how to easily insert eye-catching bar charts and graphs into WordPress with WP Visualizer plugin.

***

"Your training is the best in the world! It is simple, yet detailed, direct, understandable, memorable, and complete." Andrea Adams, FinancialJourney.org

Disclaimer: We are not directly associated with WordPress, Automattic, or any WordPress-related products mentioned on this site. We may receive financial benefits from purchases of third-party products or services advertised on our website. All images and descriptions sourced from product websites remain the copyright of their respective owners and have been used only for training and illustrative purposes.

***

Did you enjoy this tutorial? Feel free to use the social buttons below and share this information with other online users.

Author: Martin Aranovitch

Martin Aranovitch is the founder of WPCompendium.org and has authored hundreds of FREE WordPress tutorials for beginners. WPCompendium.org provides detailed step-by-step tutorials that will teach you how to use WordPress with no coding skills required and grow your business online at minimal cost!

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