Using enableTagOptions with jQuery Sparkline
HTML
<script src="https://gwatts.com/jquery.sparkline/2.1.2/jquery.sparkline.js"></script>
<p>
Sparkline appears here:
<span id="sparkline" sparkValueSpots="97:#254da2,93.1:#51ac32,97:#254da2,95.7:#254da2,96.1:#254da2,93.1:#a01c1d}">97,93.1,97,95.7,96.1,93.1</span>
</p>
JavaScript
// jsfiddle configured to load jQuery Sparkline 2.1
// http://omnipotent.net/jquery.sparkline/
// Example of specifying sliceColors as an HTML attribute
// by turning on enableTagOptions
// Draw a sparkline for the #sparkline element
$('#sparkline').sparkline('html', {
enableTagOptions: true,
width: 100,
});