jQuery Sparkline - Overriden tooltip

https://groups.google.com/d/topic/jquery-sparkline/s-XjpA9QMWo/discussion

HTML

<script src="http://omnipotent.net/jquery.sparkline/2.1/jquery.sparkline.js"></script>
<span id="StackedBarChart"></span>

JavaScript

$('#StackedBarChart').sparkline([
  [1, 4, 2],
  [2, 3, 2],
  [3, 2, 2],
  [4, 1, 2]
], {
  type: 'bar',
  // Map the offset in the list of values to a name to use in the tooltip
  tooltipFormat: '{{offset:offset}} - {{value}}',
  tooltipValueLookups: {
    'offset': {
      0: 'India',
      1: 'France',
      2: 'USA'
    }
  },
  height: "75px",
  barWidth: "30px",
});