FrontPage 

Tim's Space Wiki

Login

Flot Help

The Flot processor is used to produce simple charts and graphs.

The block contains the chart configuration, which indicates the source of the data, the items to be charted, a Javascript function which is placed on the page to set the 'data' variable which is used by the Javascript 'Flot' library, and finally a block specifying the Flot options for the desired chart.

{{{#!Flot
data_source=<name of a table block>
series_spec=<list of fields from table to chart
function=<javascript to set 'data' variable>
config= <javascript dictionary of flot options>
debug=[0|1]
}} }

Here is an example:

{{{#!Flot:table_ref1
data_source=TestCharts:data1
series_spec="""release
users
bug_count"""
function="""
"""
options="""{
  series: {
    lines: {show: true },
    points: { show: true, symbol: "circle" }
  }
}
"""
#debug=1
}} }

TBWiki engine 1.9.2 by Tim Bird