Blog

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

Add Graphs To Pages In WordPress

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

Using charts and graphs can help to make technical or statistical data more easily digestible.

You can present data with tables, but if you want your audience to try and interpret complex information with numbers, percentages and comparisons more easily, then charts and graphs are perfect for helping them understand your data.

How To Insert Appealing Graphs Into WordPress Pages And Posts

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

Need to add charts or graphs to WordPress? This 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 beautiful and interactive charts into your WordPress posts and pages that:

  • Your web visitors can interact with
  • Allows you to upload chart or graph data from your computer or a web-based data source
  • Resizes dynamically for viewing on mobile devices

Visualizer

Useful Tip

If you are displaying visual data like pie charts, comparison charts or trending graphs which contain information that is not going to change (e.g. historical data), a simple method you can use to display the information is to create the charts or graphs using an image editing application, convert these into .jpg and .png images and then simply insert your images into your web content.

Use WordPress Chart & Graph Plugins

If you want to add dynamic bars 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 great free plugin for WordPress users that is simple to install, easy-to-use and allows you to not only create attractive and interactive charts and graphs, it also lets you populate your charts and graphs with updatable content.

Visualizer Plugin For WordPress

Visualizer - WP Plugin

Visualizer Plugin URL

You can install the plugin from your WP dashboard (see further below), or download WordPress Visualizer from the link below:

http://wordpress.org/plugins/visualizer

Visualizer Plugin Description

WP Visualizer is a simple, easy to use and powerful tool that lets you create, manage and embed interactive charts into your WordPress posts and pages with a few simple steps.

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 plugins are needed.

WordPress Visualizer also comes with a variety of built-in that are optimized to address 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 browsers without requiring the installation of any additional plugins.

Plugin Installation

Inside your WordPress administration area, select Plugins > Add New from the dashboard menu …

Install Plugins

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

Install Visualizer Plugin For WordPress

Locate the plugin in the search results screen and click Install Now …

Install Visualizer

Click OK to proceed …

Install Visualizer Plugin For WordPress

Activate the plugin …

Install Visualizer Plugin For WordPress

You can also activate the plugin in the Plugins page …

Install Visualizer Plugin For WordPress

After your 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 your main menu …

WordPress Plugins

This brings up the plugin’s Visualizer Library page …

Visualizer

After installing the plugin, the library section will be empty.

Your next step is to add the charts and graphs to your library that you will want to publish to your content.

Plugin Configuration

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

Visualizer - WP Plugin

An image gallery displaying all the different types of charts and graphs available will load on your screen.

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

Visualizer

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

The next step is to upload a CSV file that contains the data you would like to populate your chart or graph with …

Visualizer - WordPress Plugin

Useful Info

When creating your CSV data file, ensure that:

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

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

Visualizer Plugin For WordPress

If you are not sure how to format your CSV file, just use the sample that comes with the plugin.

Once you have done this, select the 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 computer select ‘From Computer‘ …

WordPress Plugin: Visualizer

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

Visualizer

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

WordPress Plugin: Visualizer

Upload CSV File From The Web

Visualizer - WordPress Plugin

Important 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 your data, check that all of your information is correct (if not, click on the ‘Back’ button and reupload a data file containing the right data), and then click ‘Next‘ …

Visualizer Plugin For WordPress

Depending on the chart or graph type selected, the plugin will display a range of customization settings …

Visualizer

Visualizer gives you full control over your information, and updates your display in real time …

WP Plugin: Visualizer

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

  • General Settings – Configure chart title settings, 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

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

Visualizer Plugin For WordPress

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

Visualizer

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

Visualizer - WP Plugin

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

Visualizer - WP Plugin

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

WordPress Plugin: Visualizer

Visualizer Usage

After you’ve created a graph or chart and added it to Visualizer, 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 the ‘Add Media‘ button …

@@@

Click on ‘Visualizations‘ …

Visualizer

Select the chart or graph to be added to your content and click the “insert” icon …

WP Plugin: Visualizer

This adds a shortcode for the element into your content …

WordPress Plugin: Visualizer

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

Publishing A WordPress Post

After the post has been updated, click ‘View post’ to see the end result …

Visualizer - WP Plugin

You will see the item in your content …

Visualizer - WP Plugin

As mentioned earlier, Visualizer also displays responsive charts for mobile users …

Visualizer - WP Plugin

As you can see, WordPress Visualizer lets you add and customize dynamic charts and graphs in your content. You can edit your data and your changes will automatically be reflected wherever you have inserted your charts, graphs, comparison bars , etc. in your website. This is one of the great benefits of using the Visualizer plugin if you’re adding interactive chart information in WordPress.

Tutorial

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

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

Congratulations! Now you know how to add beautiful and mobile-responsive bar charts and graphs to WordPress.

***

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

***