Template:Bar Graph/doc

Description
This template is used together with Template:Bar_Graph/Bar to create a table that looks like a bar graph.

Parameters

 * class
 * Sets the class(es) assigned to the table. Classes can be used by CSS and JS to further customize the appearance of the graph. If left unused, the class of the graph is set to "wikitable". Specify as nothing to avoid setting any classes.
 * width
 * Sets the overall width of the graph using inline CSS (i.e. the table's style attribute). Provide only the value. If left unused, defaults to "100%".
 * style
 * Adds additional inline CSS after the width. The input is pasted unaltered into the style attribute so it must be properly formatted.
 * caption
 * Adds a caption to the graph. If left unused, defaults to "Bar Graph". Specify as nothing to avoid having a caption.
 * bars
 * Adds table rows that look like bars. Intended input is one or more instances of Template:Bar_Graph/Bar.
 * label
 * Adds text to the left of the bar. Intended to be the name for whatever the bar represents.
 * color
 * Sets the color used for the bar. If left unused, sets color to "green".
 * value
 * Sets the value of the bar. It is also displayed as part of the table cell's content. If left unused, sets value to "0".
 * max_value
 * Sets the maximum possible value for whatever the bar represents. This is so that the template can properly calculate how long to make the colored portion of the bar. It is also displayed as part of the table cell's content. If left unused, sets the maximum possible value to "10".
 * NOTE: If value is greater than max_value, the bar will behave as if value is equal to max_value. If either value or max_value are negative (but not both), the bar will behave as if the value is "0". If both value and max_value are negative, the bar will behave as if both values are positive.

Example

 * Wikitext


 * Output