Hopp til innhold

Modul:Chart/dok

Fra Wikipedia, den frie encyklopedi
Sideversjon per 30. mar. 2013 kl. 21:25 av en>קיפודנחש (Created page with 'Char module currently has a single function: bar-chart. parameters to this function are: {| calss="wikitable" |- ! parameter name !! what it does |- |delimiter ...')
(diff) ← Eldre sideversjon | Nåværende sideversjon (diff) | Nyere sideversjon → (diff)

Dette er dokumentasjonssiden for Modul:Chart

Char module currently has a single function: bar-chart.

parameters to this function are:

parameter name what it does
delimiter string to delimit multiple values when given. default to colon ( : ). normally you do not want to touch this, it's provided for the off-chance you'll want to use colon as part of one of the parameters.
width number. if provided, must be at least 200. default: 500
height number. if provided, must be at least 200. default: 350
group n (where "n" is a number. use "group 1", "group 2" etc. for as many groups as there are in the graph) the values to be charted. see below.
stack whether to stack the different groups on top of each other. do not specify to show bars side by side.
colors the colors used to denote the various groups. should have exactly as many values as # of groups
x legends The legends for the X values
tooltip n tooltip to be associated with specific bar
default color default color for the bars, if all to be drawn with same color. defaults to blue.
scale per group set to 1 to use separate Y- scale for each group. leave empty to use one scale for all groups. incompatible with "stack"
units prefix used in tooltip. e.g., $, so values will show as $500 instead of 500 in tooltips
units suffix ditto for unitst suffix. use, e.g. "Kg" so values will show as 88Kg instead of 88 in tooltip
group names names of different groups

many of the parameters are multi-valued, and are delimited with "delimiter"