Builds the matrix/rank table type
void
buildMatrixTable
(array $headers, $data, [int $lineHeight = 8], [int $pallette = 1], [int $sort = 2], array $dataset)
-
array
$headers: array array of keys to use from data array
-
array
$dataset: array containing serie data
-
int
$lineHeight: height of the lines / text pt (optional)
-
int
$pallette: which pallette set to use (optional)
-
int
$sort: which sort type to use (optional)
-
$data
Draw a simple pie chart similar to google-charts pie chart
void
buildPieGraph
(array $cdata, [float $r = 50], [int $xc = null], [int $yc = null])
-
array
$cdata: chart data serie
-
float
$r: radius of pie chart
-
int
$xc: the x coord of the chart (optional)
-
int
$yc: the y coord of the chart (optional)
builds a table for a matrix type dataset (multiple rows)
void
buildRankTable
( $data, $lang, [ $lineHeight = 8])
Neat "fancy table 2"
void
FancyTable2
([string $q_type = 'standard'], [string $title = ''], array $options, array $data, [bool $sortOpts = false], [string $sortIdx = 'You'])
-
string
$q_type: type of question - matrix|rank|xref|standard
-
string
$title: set the title column (first column) of this table (optional)
-
array
$options: simple array of text strings defining options under the title column
-
array
$data: array containing serie data
-
bool
$sortOpts: whether or not to sort these
-
string
$sortIdx: the data serie key to sort these by
Make sure our data = 100% .. :-D
array
fixPctg
(array $a)
-
array
$a: rows to adjust to 100%
Just a simple heading for a graph
void
graphHeading
(string $text)
Convert a hex string to array(r,g,b) values
array
hex2rgb
(string $color)
-
string
$color: hexidecimal/HTML color value
Reduce the size of a string small enough to fit inside charts
string
stringReduce
(string $str, int $len, [string $elip = '...'])
-
string
$str: string to "reduce"
-
int
$len: maximum length for this string to reduce to
-
string
$elip: ellipses or text to show string is cut/reduced