Tweet



 
A very easy to use, cross platform, jQuery based UI toolkit, that’s still small in size, has the features you need, and doesn’t get in your way of doing things! Put jQuery and jKit on all your pages and HTML becomes so much better. And the best thing? You really don’t have to be a programmer to create a trully amazing website! jKit has 99% of all the features you ever need. You don’t have to check out dozens of plugins, learn how to use them, only to find out they don’t work in a specific browser. And even if jKit doesn’t have that one feature you need right now, jKit is fully extendable with plugins and command replacements, all that and your API always stays the same.

Hi, stranger

jKit is growing almost daily, if you don’t find what you need, let us know with a post on the community forum or our social pages. Hey, who knows, maybe it’s already on our ToDo list.

Content Summary

jKit Button

If you like jKit, use and want to support the project, here’s a small button you can use to link to the jKit website.

Btw, if you did something really nice with jKit, send us a link to your work and if we like it, we would sure love to feature it.

Chart command

Create animated bar charts from tabular data.

Basic Usage (HTML)

data-jkit="[chart:units=£;max=1000]"

Advanced Init (JavaScript)

$('#myelement').jKit('chart', { 'units': '£', 'max': '1000' });

Options

OptionValuesDefaultDescription
maxFloat0The max. value for the whole chart. It is set automatically if “0”
delaystepsInt (Milliseconds)100The delay between each initial animation of the bars
speedInt or “fast”, “slow” (Milliseconds)500The duration of the animation in milliseconds, bigger = slower.
easingString (“linear” or easing plugin option)linearThe easing behavior of the animation

Events

EventDescription
completeTriggered after the chart is completely rendered (and the animations finished)

Examples

2011 vs. 2012:

A basic example comparing some fantasy monthly costs of two years:

Year Jan.Feb.Mar.Apr.MaiJun.Jul.Aug.Sep.Okt.Nov.Dez.
2011 500124254124245233125147189156164144
2012 21412412745242112127189145123741
Source:
<table data-jkit="[chart:style=bar;units=USD;align=vertical;max=1000]">
	<thead>
		<tr>
			<th class="label">Year</th>
			<th>Jan.</th><th>Feb.</th><th>Mar.</th><th>Apr.</th><th>Mai</th><th>Jun.</th><th>Jul.</th><th>Aug.</th><th>Sep.</th><th>Okt.</th><th>Nov.</th><th>Dez.</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<th class="label">2011</th>
			<th>500</th><th>124</th><th>254</th><th>124</th><th>245</th><th>233</th><th>125</th><th>147</th><th>189</th><th>156</th><th>164</th><th>144</th>
		</tr>
		<tr>
			<th class="label">2012</th>
			<th>214</th><th>124</th><th>127</th><th>452</th><th>421</th><th>12</th><th>127</th><th>189</th><th>145</th><th>123</th><th>741</th><th></th>
		</tr>
	</tbody>
</table>

Example CSS

div.jkit-chart {
	width: 100%;
	border-left: 1px #000 dotted;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 1px;
}
div.jkit-chart label {
	padding-left: 2px;
	font-weight: bold;
}
div.jkit-chart > div.jkit-chart-step {
	width: 100%;
	margin-bottom: 8px;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot {
	position: relative;
	background: #f8f8f8;
	margin-right: 6px;
	padding-right: 4px;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot:hover {
	background: #eee;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot > span.jkit-chart-info {
	display: block;
	position: absolute;
	right: 4px;
	top: 4px;
	color: #000;
	font-size: 11px;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot > div {
	width: 0%;
	margin-bottom: 2px;
	text-align: left;
	font-size: 11px;
	color: #000;
	padding: 2px;
	padding-top: 3px;
	overflow: hidden;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot0 > div {
	background: #c4e1ec;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot0:hover > div {
	background: #78cae9;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot1 > div {
	background: #ff9999;
}
div.jkit-chart > div.jkit-chart-step > div.jkit-chart-plot1:hover > div {
	background: #fd6565;
}

Replacements

There are currently no replacements for this command.

[ Learn more about replacements ]

 

Discussions

Do you have questions or do you want to suggest new features? Than head over to our new community:

[ jKit Community ]