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 Colourful Charts To A Post In WordPress

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

Using charts and graphs can help to break up long text passages, and make statistical data and information more easily digestible.

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

Create Interactive Graphs In Pages In WordPress

Graphs and charts help explain complex information so your audience can more easily understand it!

If you need to learn how to present dynamic visual content on your WordPress site using graphs and charts, this step-by-step tutorial will show you exactly how to create and add beautiful and interactive graphs and charts to WordPress that:

  • Your web visitors can interact with
  • Allows you to upload chart or graph data from your hard drive or an online data source
  • Dynamically resizes for mobile users

Visualizer

Useful Tip

If you are displaying visual data like bar charts, comparison charts or trending graphs that contain static information (e.g. historical data), a simple method you can use is to create your graphs or charts using a desktop application, convert these into .jpg and .png images and then simply add your image to your pages.

Use WordPress Chart & Graph Plugins

If you want to insert dynamic bars and pie charts 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 that is simple to install, easy-to-use and allows you to not only create colorful and interactive charts and graphs, it also lets you populate your charts and graphs with updatable content.

Visualizer – WP Plugin

WordPress Plugin: Visualizer

Visualizer Plugin URL

You can install the plugin inside your WordPress dashboard (we will explain how to do this further below), or access and download Visualizer the WordPress plugin repository using the link below:

http://wordpress.org/plugins/visualizer

Visualizer Plugin Description

Visualizer is a simple, easy to use and powerful plugin for WordPress that allows you to create, manage and insert stunning graphs and charts into your WordPress posts and pages with 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 add-ons are required.

The plugin also contains a variety of built-in optimized for 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 your web design. A number of options are available for each chart that let you fully 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 any additional plugins.

How To Install The Plugin

From your WP administration area, select Plugins > Add New from the main admin menu …

WordPress Step-By-Step Tutorial

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

Install Visualizer

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

Install Visualizer

Click OK to continue …

Install Visualizer

Activate the plugin …

Install WP Plugin: Visualizer

You can also activate the plugin in the Plugins area …

Install Visualizer - WordPress Plugin

After your plugin has been activated, click on Library

Install Visualizer

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

Installing Plugins

This brings up the plugin’s Visualizer Library options …

Visualizer

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

The next step is to add add charts and graphs to the library.

Plugin Configuration

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

Visualizer Plugin For WordPress

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

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

Visualizer

The graph/chart type will open up in a lightbox.

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

Visualizer

Important Info

When creating your CSV data file, make sure that:

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

The screenshot below shows how to format your data correctly …

Visualizer Plugin For WordPress

If you are not sure how to format your data CSV, simply use the sample spreadsheet provided with the plugin.

Once you have created your CSV file, select the 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

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

WordPress Plugin: Visualizer

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

Visualizer

Upload CSV File From The Web

Visualizer - WordPress Plugin

Important

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 new data file with the correct data), and click ‘Next‘ …

Visualizer Plugin For WordPress

Depending on the chart or graph type you’ve picked, the plugin will display a number of customization options …

Visualizer - WP Plugin

The plugin gives you total control over your chart or graph, and updates your display in real time …

WordPress Plugin: Visualizer

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 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 are satisfied with the look of your chart or graph, click Create Chart

Visualizer

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

Visualizer - WP Plugin

Note that each new element is given a unique ID displayed as a shortcode. As you will see in just a moment, this lets you add charts and graphs to your posts quickly and easily …

WP Plugin: Visualizer

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

WP Plugin: Visualizer

After an item has been added to the ‘Visualizer Library’, you can edit its details, clone it, or trash it …

Visualizer Plugin For WordPress

Plugin Usage

After you have created a element and added it to the Library, adding it to a page is quite simple.

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

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

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

Visualizer Plugin For WordPress

This will place a shortcode into your content …

Visualizer - WP Plugin

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

Publishing A WordPress Post

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

Visualizer Plugin For WordPress

Your post or page will display the item in the content …

Visualizer Plugin For WordPress

As mentioned earlier, the plugin also displays responsive elements for viewing on mobile devices …

WordPress Plugin: Visualizer

As you can see, Visualizer lets you insert and customize dynamic charts and graphs in your content. You can edit your data and the changes will automatically be reflected throughout your site. This is great if you’re adding dynamic chart 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 additional tutorials on editing, cloning, deleting and adding data to your charts, visit the website below:

Congratulations! Now you know how to easily insert dynamic pie charts and graphs into WordPress.

***

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

***