yet_another_sub-topic >> sub-topic_1 >> sub-topic_2 

San Jose Scout Wiki

Login

Chart Help

The Chart processor passes the content of the block vgchart configuration and data text to the vgchart module, to produce a simple chart in SVG format.

Processor arguments are:

  • chart_type=[line, bar, pie]
  • title=chart title
  • labels=L1, L2, L3...
  • colors=<color1>, <color2>, <color3>...
  • data1=v1, v2, v3...
  • top_margin=xx
  • bottom_margin=xx
  • left_margin=xx
  • right_margin=xx
  • goal_line=<goal1>, <goal2>, <goal3>...
  • max_val=xx
  • start_x=xx
  • start_y=xx
  • width=xx
  • height=xx

Multiple data lines can be specified. The number of labels should match the number of data entries for each data line. The number of colors should match the number of data entries for each data line. Data lines are suffixed by a number, starting with 1, indicating the data series

The max_val indicates the maximum value for a line or bar chart. Most of the configuration attributes are self-explanatory.

chart types that are under construction are: TreeMap, Bar3D, datechart

Example usage:

{{{#!Chart
chart_type=line
title=TBWiki line chart
top_margin=20
data1=120,180,25,50
data2=100,120,130,20
data3=180,20,110,80
labels=Q1, Q2, Q3, Q4
colors=green,blue ,red
}} }

Back to page: System_Info

TBWiki engine 1.9.3 by Tim Bird