Skip to topic | Skip to bottom
Home
 
TWiki
TWiki.ChartPluginTestsr1.1 - 19 Jun 2002 - 20:31 - PeterThoenytopic end

Start of topic | Skip to actions
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. The 2nd table is

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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
Add xlabel="Yep, an X title" to above

%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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
Default width/height. Get data from ChartPluginTestsRemote. Specify table="2" on new topic="ChartPluginTestsRemote" and web="TWiki". 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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
Set title="New title for line test #22" to above

%CHART{ type="line" name="line_22" title="New title for line test #22" web="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found

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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
Default width/height. Get data from ChartPluginTestsRemote. Specify table="2" on new topic="ChartPluginTestsRemote" and web="TWiki". 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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
Set title="New title for area test #22" to above

%CHART{ type="area" name="area_22" title="New title for area test #22" web="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
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="TWiki" 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"}%

ChartPlugin error: Required Perl module 'GD' not found

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" }%

ChartPlugin error: Required Perl module 'GD' not found
Multiple areas, single line (datatype not specified)

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

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
Set title="Set new title, arealine test #26" to above

%CHART{ type="arealine" name="arealine_26" title="Set new title, arealine test #26" web="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found
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="TWiki" 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" }%

ChartPlugin error: Required Perl module 'GD' not found

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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found
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" }%

ChartPlugin error: Required Perl module 'GD' not found

Chart error handling

Description Expected Output Output
no parameters passed to CHART error about required parameter type missing ChartPlugin error: Required Perl module 'GD' not found
name not specified error about required parameter name missing ChartPlugin error: Required Perl module 'GD' not found
Invalid type of badtype error about unrecognized type badtype ChartPlugin error: Required Perl module 'GD' not found
Missing topic page error about the specified topic not existing ChartPlugin error: Required Perl module 'GD' not found
Missing web error about the specified web not existing ChartPlugin error: Required Perl module 'GD' not found
Invalid table number error about specified table not existing ChartPlugin error: Required Perl module 'GD' not found
No data specified error about no data specified ChartPlugin error: Required Perl module 'GD' not found
invalid xaxis value error about an invalid xaxis range that specifies multiple rows and columns ChartPlugin error: Required Perl module 'GD' not found
invalid legend error about an invalid legend range that specifies multiple rows and columns %}%
ChartPlugin error: Required Perl module 'GD' not found
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: Required Perl module 'GD' not found
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: Required Perl module 'GD' not found
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: Required Perl module 'GD' not found

-- TaitCyrus? - 20 June 2002
-- PeterThoeny - 20 Jun 2002
to top


You are here: TWiki > ChartPlugin > ChartPluginTests

to top

All content is Copyright © 1999-2021 by, and the property of, the contributing authors.
Questions, comments, or concerns? Contact GNHLUG
Legal Notice (includes Terms of Service)