The plugin is compatible with most modern browsers and has been tested with Firefox 2+, Safari 3+, Opera 9, Google Chrome and Internet Explorer 6, 7, 8, 9 & 10 as well as iOS and Android.
Each example displayed below takes just 1 line of HTML or javascript to generate.
Link to jQuery Sparklines http://omnipotent.net/jquery.sparkline/#s-about
Example :
<script type="text/javascript" src="jquery-1.7.2.js"></script> <script type="text/javascript" src="jquery.sparkline.js"></script><p> Inline Sparkline: <span class="inlinesparkline">5,5,9,10</span>. </p><script type="text/javascript"> $(function() { $('.inlinesparkline').sparkline('html', {type: 'pie', barColor: 'red'} ); }); </script>
Pros
Easy to use
A jquery plugin (we are familiar with jQuery)
Free software
Run faster than google chart
Have variety of different charts
Cons
Border not smoothly rounded for pie chart
Cannot add SliceText (only show Slice's value)
Limited customisation to tool-tip styling
Không có nhận xét nào:
Đăng nhận xét