Clone this wiki locally
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.
- 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: