You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Set SHORTDESCRIPTION = Create PNG or GIF charts to visualize TWiki tables
3
+
* Set SHORTDESCRIPTION = Create PNG or GIF charts to visualize Foswiki tables
4
4
-->
5
5
6
6
---+!! Chart Plugin
7
7
%SHORTDESCRIPTION%
8
8
9
-
This plugin helps you visualize data in TWiki tables as charts,
9
+
This plugin helps you visualize data in Foswiki tables as charts,
10
10
using a default linear scale or an optional semilogarithmic scale.
11
11
12
12
%TOC%
@@ -85,9 +85,9 @@ The =%<nop>CHART{...}%= variable gets expanded to an image representing the char
85
85
|^| You can use a comma delimited list of values to set a specific subtype for each data set. For example ="area, area, point, line"= would say that the first two data sets are areas, the third is point and the last one is a line | |
86
86
| =scale= | The scale to use when creating the chart. ="linear"= or ="semilog"= | Global =SCALE= setting |
87
87
| =name= | Name to uniquely identify the chart file that is auto-created. | None; is required for all charts |
88
-
| =web= | The web in which to find =topic= (specified below) in which to find the TWiki tables | The current web |
89
-
| =topic= | The topic in which to find the TWiki tables | The current topic |
90
-
| =table= | TWiki table used to build the chart. A numerical value refers to the table number, where "1" is the first table seen in a topic. Any other non-numeric string refers to a named table defined by the =TABLE= variable with a =name= parameter. For example, table="trends" refers to the table that is preceded by =%<nop>TABLE{ name="trends" }%=. | ="1"= |
88
+
| =web= | The web in which to find =topic= (specified below) in which to find the Foswiki tables | The current web |
89
+
| =topic= | The topic in which to find the Foswiki tables | The current topic |
90
+
| =table= | Foswiki table used to build the chart. A numerical value refers to the table number, where "1" is the first table seen in a topic. Any other non-numeric string refers to a named table defined by the =TABLE= variable with a =name= parameter. For example, table="trends" refers to the table that is preceded by =%<nop>TABLE{ name="trends" }%=. | ="1"= |
91
91
| =title= | The title placed at the top of the chart | None |
92
92
| =xlabel= | The label placed under the X axis describing the X values | None |
93
93
| =ylabel= | The label placed to the left of the Y axis describing the Y values | None |
@@ -119,7 +119,7 @@ __Note:__ To support legacy syntax, =datatype= maps to =subtype=, =arealine= map
119
119
120
120
---++ Examples
121
121
122
-
Assuming the following three TWiki tables. The first shows the data oriented in columns while the seconds shows the data oriented in rows
122
+
Assuming the following three Foswiki tables. The first shows the data oriented in columns while the seconds shows the data oriented in rows
123
123
124
124
<table><tr><td valign="top">
125
125
*Table 1:*
@@ -182,7 +182,7 @@ If the required parameters are not defined, then an error message is returned or
| 16 Nov 2004: | V1.401 - Added benchmarks (no code changes) |
187
187
| 30 Aug 2004: | V1.400 - Added support for =subtype="bar"= (includes various global bar settings), updated =gridcolor= to not only define the grid color but allowing the user to define the line style (for drawing user defined dotted lines), add a global for how wide lines are drawn instead of a hard coded value, change the order of how things are drawn so now the order is: areas, grid lines and X/Y axis labels, bars, lines/points/plines, rectangle around chart, data point labels, chart title/X/Y labels, and finally the legends. |
188
188
| 13 May 2004: | V1.300 - Added support for =type="scatter"=; renamed =type="arealine"= to ="combo"= (arealine is undocumented); renamed =datatype= to =subtype= (datatype is undocumented); added =subtype= options ="point"= and ="pline"=, added new settings =GRIDCOLOR=, =DEFAULTDATA=, =POINTSIZE=; fixed bug with how the number of grids were drawn |
@@ -201,8 +201,6 @@ If the required parameters are not defined, then an error message is returned or
@@ -227,7 +227,3 @@ This table is used for various legend placement tests as well as logarithmic dat
227
227
| Use an invalid =data= range <p /> =%<nop>CHART{data="R2:C4" name="err1"}%= | ChartPlugin error: parameter *data* value of 'R2:C4' is not valid </ p> | %CHART{data="R2:C4" name="err1"}% |
228
228
| Use an invalid =legend= range <p /> =%<nop>CHART{data="R2:C4..R7:C7" legend="R1:C4" name="err1"}%= | ChartPlugin error: parameter *legend* contains an invalid value 'R1:C4'. </ p> | %CHART{data="R2:C4..R7:C7" legend="R1:C4" name="err1"}% |
229
229
| =scale=semilog= and data <= 0 <p /> =%<nop>CHART{data="R2:C3..R7:C7" name="err1" scale="semilog"}%= | ChartPlugin error: data (0) <= 0 not valid when scale=semilog </ p> | %CHART{data="R2:C3..R7:C7" name="err1" scale="semilog"}% |
0 commit comments