jQuery Small Inline Chart Plugin - Sparklines

File Size: 54.2KB
Views Total: 9888
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Small Inline Chart Plugin - Sparklines

Sparklines is a jQuery plugin that enables you to create a number of different types of Small Inline Charts with just one line of HTML or javascript.

Supported chart types:

  • Line chart
  • Pie chart
  • Bar chart
  • Line graph
  • Tristate chart
  • Bullet chart
  • Discrete chart
  • more.

Basic Usage:

1. Include jQuery library and jQuery Sparklines on the web page

<link href="https://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

2. Create a Inline Sparkline

<span class="inlinesparkline">1,4,4,7,5,9,10</span>

3. Call the plugin

<script type="text/javascript">
$(function() {
$('.inlinesparkline').sparkline();
});
</script>

This awesome jQuery plugin is developed by gwatts. For more Advanced Usages, please check the demo page or visit the official website.