Plugin Variables

Plugin Variables allow you to pass variables on the call to the Plotalot plugin. For example:

SELECT UNIX_TIMESTAMP(`date`), `%%P2%%` FROM `#__daily_summary`
WHERE `date` BETWEEN '%%P1%%-01-01' AND '%%P1%%-12-31'

This query uses two variables. P1 is the year number used as part of the where clause. P2 is the name of second column to retrieve.

On the plugin call, you could populate these variables like this:

{plotalot id="68" P1="2009" P2="average_value"}

Plugin Variables only apply when using the Plugin.

You cannot currently use Plugin Variables with Auto-Refresh.