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 Embed Charts Into Posts In WordPress

You’ve heard the adage “a picture is worth a thousand words.” This certainly applies when you are trying to present and explain data.

Using charts and graphs is a great way to break up content that contains lots of text, and make technical data more easily digestible.

You can use tables to present data, but if you want your audience to try and make sense of complex information with figures, trends or comparisons easily, then charts and graphs are perfect for helping them understand your information.

How To Create Graphs And Charts In A Page In WordPress

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

If you want to present dynamic visual content on your WordPress site using graphs and charts, this tutorial will show you how to create and add eye-catching and interactive charts to your posts and pages that:

  • Your visitors can engage with
  • Allows you to add data from your hard drive or a web-based data source
  • Dynamically resizes for mobile devices

WP Plugin: Visualizer

Practical Tip

If you plan to display visual data like bar charts, comparison charts 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 web content.

Use WordPress Chart & Graph Plugins

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

Fortunately, there is a plugin for WordPress 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 updateable content.

Visualizer – WP Plugin

Visualizer - WP Plugin

Visualizer URL

You can install the plugin from your WP dashboard (explained a little further down the page), or download WordPress Visualizer here:

http://wordpress.org/plugins/visualizer

Plugin Description

The Visualizer plugin is a simple, easy to use and powerful tool that allows you to create, manage and insert dynamic charts into your WordPress posts and pages with just a few mouse clicks.

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 add-ons are needed.

Visualizer also contains a variety of charts 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. Various 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 browsers without requiring the installation of additional plugins.

Plugin Installation

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

WP Plugins

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

Install Visualizer - WordPress Plugin

Locate the item in the search results screen and click the “Install Now” button …

Install Visualizer

Click OK to go ahead …

Install Visualizer

Activate the plugin after installation is successful …

Install WP Plugin: Visualizer

You can also activate the plugin in the Plugins area …

Install Visualizer - WordPress Plugin

Once your plugin has been activated, click on Library

Install Visualizer Plugin For WordPress

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

WordPress Plugins

This brings up the plugin’s Visualizer Library section …

Visualizer

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

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

How To Configure Visualizer

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

WordPress Plugin: Visualizer

You will see all of the built-in types of charts available.

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

Visualizer - WordPress Plugin

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

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

Visualizer

Important Info

When creating your CSV data file, make sure that:

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

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

Visualizer Plugin For WordPress

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

Once you have completed this step, select your data source (‘From Computer’ or ‘From Web’) in the ‘Upload CSV File’ section.

Upload CSV File From Computer

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

Visualizer Plugin For WordPress

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

Visualizer - WordPress Plugin

The plugin imports your data and displays it using the graph/chart type chosen …

WordPress Plugin: Visualizer

Upload CSV File From The Web

Visualizer Plugin For WordPress

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, go here:

After importing the data, check that all of the information is correct (if not, click on the ‘Back’ button and reupload a new data file containing the correct data), and click ‘Next‘ …

Visualizer Plugin For WordPress

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

Visualizer Plugin For WordPress

The WordPress Visualizer plugin gives you total control over your chart or graph, 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

Once you’re happy with the way your chart or graph looks, click on the ‘Create Chart’ button …

Visualizer

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

Visualizer

Note that every visual element is given a unique ID displayed in a shortcode. As you will see very soon, this lets you embed graphs and charts into your WordPress pages and posts quickly …

Visualizer Plugin For WordPress

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

Visualizer Plugin For WordPress

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

WP Plugin: Visualizer

Visualizer Plugin Usage

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

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

WordPress Plugin: Visualizer

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

Find the element you want to add to your content and click the “insert” icon …

WordPress Plugin: Visualizer

This will place a shortcode for the element into your content …

WP Plugin: Visualizer

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

Publishing A WordPress Post

After your page/post has been published, click ‘View post’ to see the result …

WordPress Plugin: Visualizer

Your post or page displays your item in your content …

WordPress Plugin: Visualizer

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

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 modify your data and your changes will automatically be reflected throughout your website. This is great if you’re managing interactive graph data in WordPress.

Tutorial

The developers of this plugin have created a series of step-by-step tutorials you can refer to for ways to edit, customize and use the Visualizer plugin for WordPress.

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

Congratulations! Now you know how to easily insert great-looking and interactive bar charts and graphs into WordPress with WP Visualizer.

***

"These tutorials have so much information and are easy to understand. If you use WordPress or plan to in the future these will help you with everything you need to know." - Valisa (Mesa, Arizona)

***