Template Keywords

Image - hgraph

The /hgraph/ keyword draws a horizontal gauge. This keyword is very flexible and can be used to draw a tick in a set of horizontal boxes to represent the level of an outcome, or it can produce a "fuel gauge" of a percentage result complete with the mean and range shown.

/hgraph/,<field name>,<course index>,<left>,<top>,<right>,<bottom>

The field name must be a SM-Reports field name predefined for use on a report template. The field names are listed here and are not the names of the fields in the Set Report Definition command.

The course index value determines which course is used.

The left and top values specify the top left corner, and the right and bottom the bottom right corner of the gauge.

The appearance of the gauge is determined by the previous /graph/ keyword. If the gauge includes any text the font is determined by the previous /serif/ or /sans/ keyword.

Examples

This draws a tick in a frame that is 30 mm wide and 7 mm high. There is no border or special properties, just a large tick the position of which is determined by the numeric value in the Level 1 field, which in a typical report template is likely to be used by the first area of assessment (outcome).

/graph/,area,wingcheck
/****/,preview,graph,1,5
/hgraph/,level1,1,1000,0,1300,70

This draws a "fuel gauge" for a numerical value for a value between 0 and 100 with the range between the lowest and highest mark and the average in the course indicated. The student's level is indicated by a circular dot.

/graph/,frame,scale,decade,range,circle,average,percent
/****/,preview,graph,1,100
/hgraph/,level21,1,500,230,1800,280

 

Contents
Search