Skip to main content

sparklines



A note to myself on the use of jquery sparklines.

Sparkline pie chart with dynamic data: Loading..

Generate like this
<script type="text/javascript">$(document).ready(function() {$('.dynamicsparkline').sparkline([100,8,3],{type:'pie',height:50,sliceColors:['orange','red','blue']});});</script>


Place the chart in a span with class dynamicsparkline.
<span class="dynamicsparkline">Loading..</span>



sparklines homepage

Comments