Before you can use this plugin, please enable "Smart Stats" from the plugins page.

 

Please note a maximum of one smart_stats per page.

Available options for the [smart_stats] shortcode:

  • id - required, a unique id for the container
  • title - required a title for the container
  • description - not required, a strapline for the container
  • cutout - what percentage of the chart should be cutout, i.e. 0 would be a pie chart
  • background_colour - a hex colour for the charts, set this if you would like them all to be the same colour

 

Within a [smart_stats] shortcode, you will have a [smart_stat] shortcode, the available options are as follows:

  • title - required, what is this chart representing
  • value - required, what is the value you want to represent
  • pie_percentage -  required, a number from 0 to 100 that represents the fullness of the chart
  • background_colour - a hex colour for the individual stat
  • id - required, a unique id for the stat, no spaces, preferably underscores

 

An example:

[smart_stats background_colour="#616E7C" cutout="75" title="Realsmart School" description="In Numbers"]
   [smart_stat background_colour="#05606E" id="gcse_passes" title="GCSE Passes" pie_percentage="95" value="95%" type="doughnut"][/smart_stat]
   [smart_stat background_colour="#07818F" id="a_level_passes" title="A Level Passes" pie_percentage="92" value="92%" type="doughnut"][/smart_stat]
   [smart_stat background_colour="#099AA4" id="attendance" title="Attendance" pie_percentage="98" value="98%" type="doughnut"][/smart_stat]
[/smart_stats]

 

This would result in the following: