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.

Get Thrive Leads for WordPress

How To Add Interactive Graphs To A WordPress Page Or Post

You’re probably familiar with the saying “a picture is worth a thousand words.” This is certainly true when you are presenting and explaining complex data.

Using charts and graphs is useful for making technical data simpler to grasp.

You can use tables to present data, but if you want your audience to try and interpret complex data with numbers, trends and relationships quickly, then graphs and charts let you present the data in an intelligent and meaningful manner that can be quickly processed.

How To Insert Graphs Into Pages And Posts In WordPress

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

Need to add charts or graphs to WordPress? This step-by-step tutorial shows you how to use the WP Visualizer plugin – a simple, easy to use and powerful tool that lets you create, manage and embed great-looking and mobile-responsive graphs into your WordPress posts and pages with a few simple steps that:

  • Your visitors can engage with
  • Lets you add chart or graph data from your hard drive or a web-based source of data
  • Is responsive for mobile device browsing

Visualizer - WordPress Plugin

Useful Tip

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

If you want to easily embed dynamic bars and graphs into your WordPress pages, however, (especially if you want to do this with no code editing involved, then a simple way to do this is by using a plugin.

Fortunately, there is a great plugin for WordPress that is simple to install, easy-to-use and allows you to not only create attractive and mobile-responsive charts and graphs, but also to populate these with updateable content.

Visualizer – WordPress Plugin

Visualizer - WP Plugin

Plugin URL

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

http://wordpress.org/plugins/visualizer

Visualizer Description

WP Visualizer is a simple, easy to use and powerful tool that lets you create, manage and insert attractive and interactive charts and graphs into your WordPress posts and pages with 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 additional add-ons are needed.

The plugin also contains a variety of built-in 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 your web design. 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 web visitors can see your charts and graphs on their mobile device browsers without requiring the installation of additional software.

Plugin Installation

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

Installing WP Plugins

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

Install Visualizer Plugin For WordPress

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

Install Visualizer - WordPress Plugin

Click OK to proceed …

Install Visualizer - WordPress Plugin

Activate the plugin after successfully installing it …

Install WP Plugin: Visualizer

You can also activate the plugin in the Plugins page …

Install Visualizer Plugin For WordPress

After the plugin has been activated, click on Library

Install Visualizer - WP Plugin

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

How To Intall Plugins

This brings up the plugin’s Visualizer Library settings …

Visualizer Plugin For WordPress

After installing the plugin, the library will contain no charts.

Your next step is to add the charts and graphs to your library that you plan to display in your pages or posts.

How To Configure The Plugin

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

Visualizer Plugin For WordPress

A page will load in your screen with all of the types of graphs and charts available.

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

Visualizer Plugin For WordPress

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

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

Visualizer - WordPress Plugin

Useful Info

When creating your CSV data file, make sure that:

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

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

WordPress Plugin: Visualizer

If you are unsure about how to format your data CSV, just study the sample provided with the plugin.

Once you have created your CSV file, 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 from your computer select ‘From Computer‘ …

Visualizer - WP Plugin

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

Visualizer

The plugin imports your data and displays it using the graph/chart type you have selected …

Visualizer - WP Plugin

Upload CSV File From The Web

Visualizer Plugin For WordPress

Info

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

WP Plugin: Visualizer

Depending on the chart or graph type you have chosen, the plugin will display various customization options and settings …

Visualizer

Visualizer 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, 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).

WordPress Plugin: Visualizer

Once you are satisfied with how your chart or graph appears, click on the ‘Create Chart’ button …

Visualizer - WordPress Plugin

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

WP Plugin: Visualizer

Note that every visual element is given a unique ID displayed in a shortcode. As you will see shortly, this lets you easily embed graphs and charts into your content …

WP Plugin: Visualizer

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

Visualizer

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

Visualizer Plugin For WordPress

Visualizer Usage

After creating a element and adding it to the Library, adding it to a page or post is really very simple.

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

Visualizer Plugin For WordPress

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

@@@

Click on ‘Visualizations‘ …

Visualizer

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

Visualizer Plugin For WordPress

This adds a shortcode for the element into your content …

WordPress Plugin: Visualizer

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

Publishing A WordPress Post

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

WordPress Plugin: Visualizer

You will see your element in the content …

Visualizer Plugin For WordPress

As mentioned earlier, Visualizer also displays responsive graphs for mobile viewers …

Visualizer - WP Plugin

As you can see, Visualizer lets you insert and customize dynamic charts and graphs in your content. You can modify your data and your changes will automatically be reflected throughout your site. This makes managing interactive graph data in WordPress really easy.

Tutorial

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

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

Congratulations! Now you know how to easily create colorful and dynamic pie charts and graphs in WordPress with WordPress Visualizer.

***

"Wow! I never knew there's so much to learn about WordPress! I bought one of the WordPress for Dummies three years ago, such authors need to be on this course!" - Rich Law, Create A Blog Now

Disclaimer: WordPress and its related trademarks are registered trademarks of Automattic, Inc. This site is not affiliated with nor sponsored by Automattic, Inc. or the WordPress Open Source project. This site and the products and services offered on this site are not affiliated, associated, sponsored, or endorsed by WordPress, nor have they been certified, reviewed, or tested by WordPress. The owner, contributors and/or advertisers may derive financial benefit from sales of items reviewed, advertised, or linked to this site.

***

Did you enjoy this tutorial? If so, please take a moment and share this information with others who could benefit from WordPress using the share buttons below.

Author: Martin Aranovitch

Martin Aranovitch is the founder of WPCompendium.org and has authored hundreds of FREE WordPress tutorials for non-techies and 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!