Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Getting started

mrBigJS edited this page · 7 revisions

The Simplest Example

Here is the most simple example of shortcode's call from WordPress page/post that works very well:

  • [simpleChart mtitle='All Pets in Home' labels='(Cats, Dogs, Birds)' values='(2,1,5)']

It is just labelling whole new chart and putting 3 data values into the chart and giving those values meaningfull labels.

Step 2: changing the chart's type (/shape)

  • [simpleChart chart='Area' mtitle='All Pets in Home' labels='(Cats, Dogs, Birds)' values='(2,1,5)']

Here you can see how easy it is to switch to another at first opening chart type by adding 'chart' option into the call: this is bringing up 'Area' type chart, obviously.

IMPORTANT NOTEs:

  1. You can NOT use commas (",") between WordPress shortcode's arguments (chart, mtitle, labels, and values, etc) over there (or things are going horribly wrong) !
  2. You need to remember quotation letters (eq " or ') when listing your labels="...", values='...', or colors="...". Otherwise, parsing of input list is failing.

Go and see them here:

Something went wrong with that request. Please try again.