Limited time only! The Ultimate WordPress Developer Bundle only $149

Mysitemyway
  • Home
  • Themes ˇ
    • Construct
    • Myriad
    • Method
    • Fusion
    • Elegance
    • DejaVu
    • Persuasion
    • Modular
    • Echelon
  • Features
  • Pricing
  • Blog
  • Skin Browser
  • Support ˇ
    • FAQ’s
    • Documentation Wiki
    • Support Forum
    • Contact Us
  • Login
    • Forgot Password?

Charts

Home / Documentation / Charts
 

Contents

  • 1 Shortcode Generator
  • 2 Charts
  • 3 Examples


Shortcode Generator

Instead of typing out your shortcode you can also use our shortcode generator.   Learn More

Charts

The Google Charts API is pretty complex. It gives you the option of embedding interactive charts into your page which can be very useful in displaying various types of data for your readers.

Syntax:

[chart type="area" title="Our first area chart" width="390" height="280"]
var data = new google.visualization.DataTable();
data.addColumn('string', 'Year');
data.addColumn('number', 'Sales');
data.addColumn('number', 'Expenses');
data.addRows([
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
[/chart]

Options:

type        // the type of chart you wish to use, available options:
            // area, bar, candlestick, column, combo, line, pie, scatter
title       // the title for your chart
height      // height of your chart
width       // width of your chart
extras      // various other options for your chart such as fonts and colors

Examples

As said before the Google charts are complex so you will need to do a bit of research on how to build your data. As you can see in the following image you specify your options in the beginning of the shortcode and your data goes in the middle.

// Here is the beginning of the shortcode where you would configure your options
// As you can see we are adding a label "Year" along the vertical axis of our area chart
[chart type="area" title="Our first area chart" width="390" height="280"
extras = "vAxis: {title: 'Year',  titleTextStyle: {color: 'red'}}"]]

// Here is your data to display inside the chart
// Your data will be different depending on what type of chart your using
var data = new google.visualization.DataTable();
data.addColumn('string', 'Year');
data.addColumn('number', 'Sales');
data.addColumn('number', 'Expenses');
data.addRows([
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);

[/chart]

The data is going to look different depending on which type of chart your using. You can build your data and check to see how it displays with this tool, http://code.google.com/apis/ajax/playground/?type=visualization.

You can read more on the various chart types and how to use them on the Google docs,

Area: http://code.google.com/apis/chart/interactive/docs/gallery/areachart.html
Bar: http://code.google.com/apis/chart/interactive/docs/gallery/barchart.html
Candlestick: http://code.google.com/apis/chart/interactive/docs/gallery/candlestickchart.html
Column: http://code.google.com/apis/chart/interactive/docs/gallery/columnchart.html
Combo: http://code.google.com/apis/chart/interactive/docs/gallery/combochart.html
Line: http://code.google.com/apis/chart/interactive/docs/gallery/linechart.html
Pie: http://code.google.com/apis/chart/interactive/docs/gallery/piechart.html
Scatter: http://code.google.com/apis/chart/interactive/docs/gallery/scatterchart.html

Retrieved from "http://mysitemyway.com/docs/index.php/Charts"
Category: Shortcode
Navigation
  • Get Started
  • Archives
  • Advanced Search
  • Category List
Categories
  • Configuration
  • Shortcodes
  • Customization
  • Advanced Features
  • Troubleshooting
  • Changelogs
  • Plugins
  • Framework Docs
Theme Specific
  • inFocus
  • Awake
  • Dejavu
  • Elegance
  • Echelon
  • Modular
  • Persuasion
  • Fusion
  • Method
  • Myriad
  • Construct
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
 
Personal tools
  • Log in
prev
Construct WordPress Theme
detailspurchase
Construct wordpress theme
Myriad WordPress Theme
detailspurchase
Myriad wordpress theme
Method WordPress Theme
detailspurchase
Method wordpress theme
Fusion WordPress Theme
detailspurchase
Fusion wordpress theme
Elegance WordPress Theme
detailspurchase
Elegance wordpress theme
Echelon WordPress Theme
detailspurchase
Echelon wordpress theme
Persuasion WordPress Theme
detailspurchase
Persuasion wordpress theme
Dejavu WordPress Theme
detailspurchase
Dejavu wordpress theme
Modular WordPress Theme
detailspurchase
Modular wordpress theme
next
Start Your Free Trial

Come and be a part of the fastest growing new Premium WordPress Theme Club around!

Quick Links

  • Browse All Themes
  • Tour Features
  • Browse All Skins
  • View Pricing
  • Mysitemyway Blog
  • Testimonials

Support Links

  • Frequently Asked Questions
  • Support Forums
  • Theme Documentation
  • Shortcode Documentation
  • Contact Us

Theme Features

  • Features Overview
  • Dedicated Support Team
  • Enhanced Performance
  • Shortcode Generator
  • Free Updates
  • Skinning Community

Live Demos

  • Construct WP Theme
  • Myriad WP Theme
  • Method WP Theme
  • Fusion WP Theme
  • Elegance WP Theme
  • Echelon WP Theme
  • Persuasion WP Theme
Mysitemyway Money Back Guarantee
30 Day Money Back Guarantee

We stand behind the quality of our themes, and believe that you will be fully satisfied. If, for any reason you are not fully satisfied, we offer a 30 day, no-hassle, money-back guarantee.

Who's Using Mysitemyway?

7239 Active Users Can't Be Wrong...
68661 Support Forum Posts Served!
I've been working with WordPress for a while now and I wanted to say that MysiteMyway is by far the best support I have come across. I've purchased about 30 themes, Dejavu was the first from these guys and I couldn't be happier!

Layers

Your themes and support are the best in the entire Internet universe! Over the years I have bought many themes that never work as advertised. Your 30 day money back guarantee is a no brainer risk on your part: Who would ever want their money back? The designers, QA and support staffs are a throwback to the good old days when businesses cared about the quality of their products and their customers.

Frank Gennaro

I just wanted to say, that this theme is absolutely amazing. The documentation is superb and the customer service is above and beyond! I would have spent MORE for such expertise and service that you receive with this product.
Thanks so much and keep up the amazing work!!!

wildefranz

Just a quick thanks for producing such wonderful themes. I can’t tell you how much I appreciate the amount of time, skill and craftsmanship that wen’t into these. The detail is incredible, every corner I peak into I find something that surprises me. And the documentation, it’s extremely well written and very easy to follow.

Well done,

Ed

Great Support !!! & very powefull WP Theme… Super Flexible %100 recommended

JavierDesigns

PrevNext

Join The Mailing List

Powered By
Powered By WordPress Logo Powered By PayPal Logo Powered By Mysitemyway Logo Powered By Firehost Logo
Follow Us
Mysitemyway RSS Mysitemyway Facebook Mysitemyway Twitter
© 2011 Mysitemyway. All Rights Reserved.
Privacy Policy | Terms & Conditions