Tags:
create new tag
, view all tags
Chart Plugin tests

This page attempts to demonstrate/test many of the possible combinations of various parameters of the ChartPlugin. There are too many combinations of parameters to test all possible combinations, so only a few are shown here.


Good Charts with various parameters

The following 2 tables are used for testing purposes. The 2nd table is the same as the 1st except that the data is row oriented instead of column oriented. Some of the tests reference other web.topics and the referenced web.topics are described in the comments section for each chart.

Table #1

Nr Period Min Acceptable Target Exceptional Actual Comment
1 Start 0 50 70 90 39 initial measure
2 FY03-Q1 0 35 75 95 55  
3 FY03-Q2 0 35 75 95 36  
4 FY03-Q3 0 40 80 100 62  
5 FY03-Q4 0 40 80 100 72  
6 FY04-Q1 0 40 80 100 68  

Table #2

Nr 1 2 3 5 5 6
Period Start FY03-Q1 FY03-Q2 FY03-Q3 FY03-Q4 FY04-Q1
Min 0 0 0 0 0 0
Acceptable 50 35 35 40 40 40
Target 70 75 75 80 80 80
Exceptional 90 95 95 100 100 100
Actual 39 55 36 62 72 68
Comment initial measure          

Line Tests

Simple single line. No other markings at all

%CHART{ type="line" name="line_1" title="line test #1"  table="1" data="R2:C7..R7:C7" }%

Add X axis to above

%CHART{ type="line" name="line_2" title="line test #2" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" }%

Add Y axis to above

%CHART{ type="line" name="line_3" title="line test #3" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" }%

Add ymin="0" to above

%CHART{ type="line" name="line_4" title="line test #4" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" }%

Add ymax="100" to above

%CHART{ type="line" name="line_5" title="line test #5" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" }%

Add ylabel="Hello there" to above

%CHART{ type="line" name="line_6" title="line test #6"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" }%

Add numygrids="5" to above

%CHART{ type="line" name="line_6b" title="line test #6b"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" numygrids="5"}%

Change numygrids="2" to above

%CHART{ type="line" name="line_6c" title="line test #6c"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" numygrids="2"}%

Remove numygrids from above and add xlabel="Yep, an X title"

%CHART{ type="line" name="line_7" title="line test #7"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" }%

Add datalabel="on" to above

%CHART{ type="line" name="line_8" title="line test #8"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="on" }%

Add datalabel="box" to above

%CHART{ type="line" name="line_9" title="line test #9"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" }%

Add legend to above

%CHART{ type="line" name="line_10" title="line test #10"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C7..R1:C7" }%

Add additional data lines to above and update legend

%CHART{ type="line" name="line_11" title="line test #11" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" }%

Specify different colors to above. Now are lite red, lite green, lite blue, gray instead of #FF0000, #FFCC00, #00CC00, #FF00FF, #33CCCC, #FF8000, #009900, #FF6666, #3333FF, #800080

%CHART{ type="line" name="line_12" title="line test #12" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" colors="#ffAAAA,#AAffAA,#AAAAff,#AAAAAA" }%

Restore default colors and change datalabel such that only the last line has values in boxes and the 2nd to last has values (no box) to above

%CHART{ type="line" name="line_13" title="line test #13" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" }%

Change ygrid="on" to above

%CHART{ type="line" name="line_14" title="line test #14" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="on" }%

Change ygrid="off" to above

%CHART{ type="line" name="line_15" title="line test #15" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" }%

Change xgrid="on" to above

%CHART{ type="line" name="line_16" title="line test #16" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="on" }%

Change xgrid="off" to above

%CHART{ type="line" name="line_17" title="line test #17" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" }%

Change width="300"

%CHART{ type="line" name="line_18" title="line test #18" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" width="300" }%

Change height="150"

%CHART{ type="line" name="line_19" title="line test #19" title="line test #18" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" height="150" width="300" }%

Default width/height. Get data from ChartPluginTestsRemote. Specify table="2" on new topic="ChartPluginTestsRemote" and web="Plugins". Actual values should show up incremented by 0.52 since data is from a different topic page and the 0.02 denotes the data is from the 2nd table. Legend should show up with Remote since the data on the remote page was set up to include Remote in the legends

%CHART{ type="line" name="line_20" title="line test #20" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R7:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R7:C1" xgrid="off" ygrid="off" }%

Same as above except add an additional data set (averages) that is calculated by %CALC%.

%CHART{ type="line" name="line_21" title="line test #21" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R8:C1" xgrid="off" ygrid="off" }%

Set title="New title for line test #22" to above

%CHART{ type="line" name="line_22" title="New title for line test #22" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R8:C1" xgrid="off" ygrid="off" }%

Same as above except add alt="This is the alt tag"

%CHART{ type="line" name="line_23" title="New title for line test #23" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R8:C1" xgrid="off" ygrid="off" alt="This is the alt tag" }%

This is the alt tag

Area Tests

Simple area. No other markings at all

%CHART{ type="area" name="area_1" title="area test #1" table="1" data="R2:C7..R7:C7" }%

Add X axis to above

%CHART{ type="area" name="area_2" title="area test #2" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" }%

Add Y axis to above

%CHART{ type="area" name="area_3" title="area test #3" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" }%

Add ymin="0" to above

%CHART{ type="area" name="area_4" title="area test #4" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" }%

Add ymax="100" to above

%CHART{ type="area" name="area_5" title="area test #5" table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" }%

Add ylabel="Hello there" to above

%CHART{ type="area" name="area_6" title="area test #6"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" }%

Add xlabel="Yep, an X title" to above

%CHART{ type="area" name="area_7" title="area test #7"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" }%

Add datalabel="on" to above

%CHART{ type="area" name="area_8" title="area test #8"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="on" }%

Add datalabel="box" to above

%CHART{ type="area" name="area_9" title="area test #9"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" }%

Add legend to above

%CHART{ type="area" name="area_10" title="area test #10"  table="1" data="R2:C7..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C7..R1:C7" }%

Add additional data areas to above and update legend

%CHART{ type="area" name="area_11" title="area test #11" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" }%

Specify different colors to above. Now are lite red, lite green, lite blue, gray instead of #FF3333, #FFFF33, #33FF33, #CC66FF, #99FFFF, #FFCC00, #008000, #FF8080, #3366CC, #800080

%CHART{ type="area" name="area_12" title="area test #12" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" colors="#ffAAAA,#AAffAA,#AAAAff,#AAAAAA" }%

Restore default colors and change datalabel such that only the last area has values in boxes and the 2nd to last has values (no box) to above

%CHART{ type="area" name="area_13" title="area test #13" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" }%

Change ygrid="on" to above

%CHART{ type="area" name="area_14" title="area test #14" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="on" }%

Change ygrid="off" to above

%CHART{ type="area" name="area_15" title="area test #15" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" }%

Change xgrid="on" to above

%CHART{ type="area" name="area_16" title="area test #16" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="on" }%

Change xgrid="off" to above

%CHART{ type="area" name="area_17" title="area test #17" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" }%

Change width="300"

%CHART{ type="area" name="area_18" title="area test #18" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" width="300" }%

Change height="150"

%CHART{ type="area" name="area_19" title="area test #19" title="area test #18" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" height="150" width="300" }%

Default width/height. Get data from ChartPluginTestsRemote. Specify table="2" on new topic="ChartPluginTestsRemote" and web="Plugins". Actual values should show up incremented by 0.52 since data is from a different topic page and the 0.02 denotes the data is from the 2nd table. Legend should show up with Remote since the data on the remote page was set up to include Remote in the legends

%CHART{ type="area" name="area_20" title="area test #20" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R7:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R7:C1" xgrid="off" ygrid="off" }%

Same as above except add an additional data set (averages) that is calculated by %CALC%.

%CHART{ type="area" name="area_21" title="area test #21" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R8:C1" xgrid="off" ygrid="off" }%

Set title="New title for area test #22" to above

%CHART{ type="area" name="area_22" title="New title for area test #22" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R8:C1" xgrid="off" ygrid="off" }%

Same as above except add alt="This is the alt tag"

%CHART{ type="area" name="area_23" title="New title for area test #23" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off on box" legend="R4:C1..R8:C1" xgrid="off" ygrid="off" alt="This is the alt tag"}%

This is the alt tag

Arealine Tests

Single area (no datatype so defaults to "line"). No other markings at all

%CHART{ type="arealine" name="arealine_1" title="arealine test #1"  table="1" data="R2:C7..R7:C7" }%

Multiple areas, single line (datatype not specified)

%CHART{ type="arealine" name="arealine_2" title="arealine test #2" table="1" data="R2:C4..R7:C7" }%

Add datatype="area line area line" to above

%CHART{ type="arealine" name="arealine_3" title="arealine test #3" table="1" data="R2:C4..R7:C7" datatype="area line area line" }%

Change to datatype="line line line line"

%CHART{ type="arealine" name="arealine_4" title="arealine test #4" table="1" data="R2:C4..R7:C7" datatype="line line line line" }%

Change to datatype="line line line area"

%CHART{ type="arealine" name="arealine_5" title="arealine test #5" table="1" data="R2:C4..R7:C7" datatype="line line line area" }%

Change to datatype="area area area line"

%CHART{ type="arealine" name="arealine_6" title="arealine test #6" table="1" data="R2:C4..R7:C7" datatype="area area area line" }%

Add X axis to above

%CHART{ type="arealine" name="arealine_7" title="arealine test #7" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" }%

Add Y axis to above

%CHART{ type="arealine" name="arealine_8" title="arealine test #8" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" }%

Add ymin="0" to above

%CHART{ type="arealine" name="arealine_9" title="arealine test #9" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" }%

Add ymax="200" to above

%CHART{ type="arealine" name="arealine_10" title="arealine test #10" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="200" }%

Restore default ymax and add ylabel="Hello there" to above

%CHART{ type="arealine" name="arealine_11" title="arealine test #11" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" }%

Add xlabel="Yep, an X title" to above

%CHART{ type="arealine" name="arealine_12" title="arealine test #12" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" }%

Add datalabel="on" to above

%CHART{ type="arealine" name="arealine_13" title="arealine test #13" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" datalabel="on" }%

Add datalabel="box" to above

%CHART{ type="arealine" name="arealine_14" title="arealine test #14" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" }%

Add legend to above

%CHART{ type="arealine" name="arealine_15" title="arealine test #15" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" }%

Specify different colors to above. Now are lite red, lite green, lite blue, gray instead of #FF3333, #FFFF33, #33FF33, #CC66FF, #99FFFF, #FFCC00, #008000, #FF8080, #3366CC, #800080

%CHART{ type="arealine" name="arealine_16" title="arealine test #16" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" colors="#ffAAAA,#AAffAA,#AAAAff,#AAAAAA" }%

Restore default colors and change datalabel such that only the last area has values in boxes and the 2nd to last has values (no box) to above

%CHART{ type="arealine" name="arealine_17" title="arealine test #17" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R1:C4..R1:C7" datalabel="off off on box" }%

Change ygrid="on" to above and change legend so only the last data set shows values in boxes

%CHART{ type="arealine" name="arealine_18" title="arealine test #18" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R1:C4..R1:C7" datalabel="off off off box" ygrid="on" }%

Change ygrid="off" to above

%CHART{ type="arealine" name="arealine_19" title="arealine test #19" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R1:C4..R1:C7" datalabel="off off off box" ygrid="off" }%

Change xgrid="on" to above

%CHART{ type="arealine" name="arealine_20" title="arealine test #20" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R1:C4..R1:C7" datalabel="off off off box" ygrid="off" xgrid="on" }%

Change xgrid="off" to above

%CHART{ type="arealine" name="arealine_21" title="arealine test #21" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R1:C4..R1:C7" datalabel="off off off box" ygrid="off" xgrid="off" }%

Change to width="300"

%CHART{ type="arealine" name="arealine_22" title="arealine test #22" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R1:C4..R1:C7" datalabel="off off off box" ygrid="off" xgrid="off" width="300" }%

Change to height="150"

%CHART{ type="arealine" name="arealine_23" title="arealine test #23" table="1" data="R2:C4..R7:C7" datatype="area area area line" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R1:C4..R1:C7" datalabel="off off off box" ygrid="off" xgrid="off" width="300" height="150" }%

Default width/height. Get data from ChartPluginTestsRemote. Specify table="2" on new topic="ChartPluginTestsRemote". Actual values should show up incremented by 0.52 since data is from a different topic page and the 0.02 denotes the data is from the 2nd table. Legend should show up with Remote since the data on the remote page was set up to include Remote in the legends

%CHART{ type="arealine" name="arealine_24" title="arealine test #24" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R7:C7" datatype="area area area line" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R4:C1..R7:C1" datalabel="off off off box" ygrid="off" xgrid="off" }%

Same as above except add an additional data set (averages) that is calculated by %CALC%.

%CHART{ type="arealine" name="arealine_25" title="arealine test #25" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" datatype="area area area line" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R4:C1..R8:C1" datalabel="off off off box" ygrid="off" xgrid="off" }%

Same as above except specify bgcolor light blue and orange.

%CHART{ type="arealine" name="arealine_25b" title="arealine test #25 with bgcolor" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" datatype="area area area line" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R4:C1..R8:C1" datalabel="off off off box" ygrid="off" xgrid="off" bgcolor="#EEEEFF #FFA000"}%

Set title="Set new title, arealine test #26" to above

%CHART{ type="arealine" name="arealine_26" title="Set new title, arealine test #26" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" datatype="area area area line" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R4:C1..R8:C1" datalabel="off off off box" ygrid="off" xgrid="off" }%

Same as above except add alt="This is the alt tag"

%CHART{ type="arealine" name="arealine_27" title="Set new title, arealine test #27" web="Plugins" topic="ChartPluginTestsRemote" table="2" data="R4:C2..R8:C7" datatype="area area area line" xaxis="R2:C2..R2:C7" yaxis="on" ymin="0" ylabel="Hello there" xlabel="Yep, an X title" legend="R4:C1..R8:C1" datalabel="off off off box" ygrid="off" xgrid="off" alt="This is the alt tag" }%

This is the alt tag

Some Arealine Tests with Extreme Values

Show a wide chart with width="500"

%CHART{ type="arealine" name="arealine15e1" title="arealine test #15 extreme #1" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" datatype="area area area line" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off off box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" width="500" }%

Show a tall chart with height="500"

%CHART{ type="arealine" name="arealine15e2" title="arealine test #15 extreme #2" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" datatype="area area area line" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off off box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" height="500" }%

Show a wide and tall chart with width="500" and height="500"

%CHART{ type="arealine" name="arealine15e3" title="arealine test #15 extreme #3" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" datatype="area area area line" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="off off off box" legend="R1:C4..R1:C7" ygrid="off" xgrid="off" width="500" height="500" }%

Show a simple chart using bgcolor = #EEEEEE

%CHART{ type="line" name="line_16" title="Test bgcolor #EEEEEE" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" bgcolor="#EEEEEE" }%

Show a simple chart using bgcolor = "#FFFFFF #EEEEEE"

%CHART{ type="line" name="line_17" title="Test bgcolor #FFFFFF #EEEEEE" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" bgcolor="#FFFFFF #EEEEEE" }%

Show a simple chart using bgcolor = "#EEEEEE #EEFFEE"

%CHART{ type="line" name="line_18" title="Test bgcolor #EEEEEE #EEFFEE" table="1" data="R2:C4..R7:C7" xaxis="R2:C2..R7:C2" yaxis="on" ymin="0" ymax="100" ylabel="Hello there" xlabel="Yep, an X title" datalabel="box" legend="R1:C4..R1:C7" bgcolor="#EEEEEE #EEFFEE" }%

Table #3

  line 1 line 2 line 3 line 4
1990 0 0 0 0
1991 0 0 0 0
1992 2 12 22 32
1993 3 20 20 33
1994 3 20 19.5 33
1995 39 38 37 36
1996 40 40 40 40
1997 40 41 42 43

Test various legend placement situations

Test that when all lines overlap on the very bottom of the chart, the legends all show up non-overlapped

%CHART{type="line" name="table3_test1" table="table3" xaxis="R1:C1..R7:C1" data="R2:C2..R3:C99" yaxis="on" legend="R1:C2..R1:C99" ymin="0" ymax="1" title="Test overlap @ bottom"}%

Test that when the lines don't overlap, that the legends get placed where you expect them to

%CHART{type="line" name="table3_test2" table="table3" xaxis="R1:C1..R7:C1" data="R2:C2..R4:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test non-overlap"}%

Test that when two lines overlap in the middle of the chart, the legends get correctly placed

%CHART{type="line" name="table3_test3" table="table3" xaxis="R1:C1..R7:C1" data="R2:C2..R5:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test overlap @ middle"}%

Similar to the test above, except the data is changed such that the placement of the legends for the two middle lines should be reversed

=%CHART{type="line" name="table3_test4" table="table3" xaxis="R1:C1..R7:C1" data="R2:C2..R6:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test overlap @ middle"}%

Test that when 4 lines are close to overlapping and are all located at the top of the chart, the legends get correctly placed.

=%CHART{type="line" name="table3_test5" table="table3" xaxis="R1:C1..R8:C1" data="R2:C2..R7:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test overlap @ top" ymax="40"}%

Test that when 4 lines do exactly overlap at the top of the chart, the legends get correctly placed.

=%CHART{type="line" name="table3_test6" table="table3" xaxis="R1:C1..R8:C1" data="R2:C2..R8:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test overlap @ top" ymax="40"}%

Test that the arrangement of legends of 4 lines located at the top of a chart is correct.

=%CHART{type="line" name="table3_test7" table="table3" xaxis="R1:C1..R8:C1" data="R2:C2..R9:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test overlap @ top" ymax="40"}%

Test that even with a ymax set too low such that the lines go off the top of the chart, the legends still stay on the chart.

=%CHART{type="line" name="table3_test8" table="table3" xaxis="R1:C1..R8:C1" data="R2:C2..R4:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test legends falling off top" ymax="20"}%

Test that even with a ymin set too high such that some lines don't even show up on the chart because the fall below the chart, the legends still stay on the chart.

=%CHART{type="line" name="table3_test9" table="table3" xaxis="R1:C1..R8:C1" data="R2:C2..R4:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test legends falling off top" ymin="21"}%

Test extremes that even when ymin is set higher than all data, that the legends still get drawn on the chart.

=%CHART{type="line" name="table3_test10" table="table3" xaxis="R1:C1..R8:C1" data="R2:C2..R4:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test legends falling off bottom" ymin="50" ymax="60"}%

Test extremes that even when ymax is set lower than all data, that the legends still get drawn on the chart.

=%CHART{type="line" name="table3_test11" table="table3" xaxis="R1:C1..R8:C1" data="R2:C2..R4:C99" yaxis="on" legend="R1:C2..R1:C99" title="Test legends falling off top" ymin="-50" ymax="-10"}%

Chart error handling

Description Expected Output Output
no parameters passed to CHART error about required parameter type missing ChartPlugin error:
parameter name must be specified
name not specified error about required parameter name missing ChartPlugin error:
parameter name must be specified
Invalid type of badtype error about unrecognized type badtype ChartPlugin error:
parameter name must be specified
Missing topic page error about the specified topic not existing ChartPlugin error:
Error retrieving TWiki topic
Plugins.DoesNotExist
Missing web error about the specified web not existing ChartPlugin error:
Error retrieving TWiki topic
DoesNotExist.ChartPluginTests
Invalid table number error about specified table not existing ChartPlugin error:
parameter table is not valid table;
the specified table '999' does not
exist.
No data specified error about no data specified ChartPlugin error:
parameter data must be specified
invalid xaxis value error about an invalid xaxis range that specifies multiple rows and columns ChartPlugin error:
parameter xaxis specifies multiple
(6X4) rows and columns.
invalid legend error about an invalid legend range that specifies multiple rows and columns ChartPlugin error:
parameter xaxis specifies multiple
(2X2) rows and columns.
ymin = =ymax such that there is no chart height error about chart height = 0 ChartPlugin error:
chart error: name=err1: No Chart height
with ymin1(10) == ymax(10)
The same as arealine test #15 except the xaxis value contains an invalid table range of just 'R2:C2' error about invalid xaxis range ChartPlugin error:
parameter legend contains an invalid
value 'R1:C4..R1:C7' since it specifies
4 legends and there are 6 data sets.
The same as arealine test #15 except the data value contains an invalid table range of just 'R2:C4' error about an invalid data range ChartPlugin error:
parameter legend contains an invalid
value 'R1:C4..R1:C7' since it specifies
4 legends and there are 1 data sets.
The same as arealine test #15 except the legend value contains an invalid table range of just 'R1:C4' error about invalid legend range ChartPlugin error:
parameter legend contains an invalid
value 'R1:C4' since it specifies 1
legends and there are 4 data sets.

-- TaitCyrus - 14 Sept 2002
-- PeterThoeny - 14 Sept 2002

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-10-11 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.