-
Notifications
You must be signed in to change notification settings - Fork 1
Getting started
mrBigJS edited this page Jun 14, 2013
·
7 revisions
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.
[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:
- You can NOT use commas (",") between WordPress shortcode's arguments (chart, mtitle, labels, and values, etc) over there (or things are going horribly wrong) !
- 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: