Place for some configs

Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.

Charts v 1.3

Charts are generated with a simple table or with a data object

Options read more about inline data attributes

optiondefaultpossible valuesdescriptionsinceinfo
widthnullinteger the width of the charts. If set to null the width is equal the table1.0
height300integer the height of the charts.1.0
hideTabletruetrue | false Hides the table1.0
tableBeforefalsetrue | false inserts the charts after the table if true1.3
data{}object The data for the chart1.0see flot library for more information
stackfalsetrue | false Stack the charts1.0Only for Line and Bar Charts
type'lines'lines | bars | pie defines the type of the chart1.0
pointsnulltrue | false | null show points on the charts. If set to null the standard value for the type will be used1.0
shadowSize2integer Size of the shadow1.0Only for Line and tilted Pie Charts
fillnulltrue | false | null fill the charts. If set to null the standard value for the type will be used1.0
fillColornulltrue | false | null color of the fill. If set to null the color of the line will be used1.0
lineWidthnullnumber thikness of the lines. If set to null the standard value for the type will be used1.0
legendtruetrue | false display the legend within the charts1.0
legendPosition'ne''ne' | 'nw' | 'se' | 'sw' position of the legend1.0
tooltiptruetrue | false display a tooltip1.0
tooltipGravity'n''n' | 'e' | 's' | 'w' | 'ne' | 'nw' | 'se' | 'sw' position of the tooltip1.0uses the tipsy plugin
tooltipPattern"value is %1 from %2 at %3 (%4)"string | function(value, legend, label, id, itemobj) The pattern for the tooltip. If it is a string %1 => value, %2 => legend, %3 => label, %4 => id. The function must return a string1.0 itemobj was added in version 1.2
orientation'horizontal''horizontal' | 'vertical' Parsing direction of the table1.0
colors['#b2e7b2','#f0b7b7','#b5f0f0','#e8e8b3', '#efb7ef' ,'#bbb6f0']array Array of colors. If more colors needed it start with the first one
flot{}flot object more specific options for the flot library1.0every option overwrides the predefined ones
onClickfunction(){}function(value, legend, label, id, itemobj) callback if a bar or chart point is clicked1.0 itemobj was added in version 1.2

Methods

method namedefaultargumentsdescriptionsinceinfo
setkey, value sets the the option 'key' with the value 'value'1.0
Check out flot library for all methods

Usage

$(selector).wl_Chart([options]);

Calling Methods

$(selector).wl_Gallery('method', [,arg [,arg]]);

Markup

<table class="charts">
<thead>
	<tr>
		<th></th>
		<th>Label 1</th>
		<th>Label 2</th>
		<th>Label 3</th>
		<th>Label 4</th>
		<th>Label 5</th>
		<th>Label 6</th>
	</tr>
</thead>
<tbody>
	<tr>
		<th>First Label</th>
		<td>18</td>
		<td>125</td>
		<td>159</td>
		<td>147</td>
		<td>154</td>
		<td>114</td>
	</tr>
	<tr>
		<th>Second Label</th>
		<td>8</td>
		<td>27</td>
		<td>25</td>
		<td>79</td>
		<td>47</td>
		<td>59</td>
	</tr>
</tbody>
</table>

Data Values

data:[{
	label:'First Label',
	data:[[0,18],[1,125],[2,159],[4,147],[5,154],[6,114]]
},{
	label:'Second Label',
	data:[[0,8],[1,27],[2,25],[4,79],[5,47],[6,59]]
}]

Example

Label 1 Label 2 Label 3 Label 4 Label 5 Label 6
First Label 18 125 159 147 154 114
Second Label 8 27 25 79 47 59