Skip to content

Instantly share code, notes, and snippets.

@davidray
Created August 2, 2010 22:09
Show Gist options
  • Select an option

  • Save davidray/505409 to your computer and use it in GitHub Desktop.

Select an option

Save davidray/505409 to your computer and use it in GitHub Desktop.
%script{ :type => "text/javascript" }
$(function() {
$('.inlinesparkline').sparkline();
var myvalues = [10,8,5,7,4,4,1];
$('.dynamicsparkline').sparkline(myvalues);
$('.pie').sparkline('html', { type: 'pie', height: '40px', offset: '90', sliceColors: ["green","yellow","red","black"] });
$('.small_pie').sparkline('html', { type: 'pie', height: '15px', offset: '90', sliceColors: ["green","red"] });
$('.inlinebar').sparkline('html', {type: 'bar', barColor: 'red'} );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment