A Tooltip is divided time format in three part 00,00 and 80
var values = ['00:00:80','00:00:60','00:00:00','00:00:40','00:01:80','00:02:80'];
// Draw a sparkline for the #sparkline element
$('.sparkline').sparkline(values, {
type: "bar",
height: '150px',
// Map the offset in the list of values to a name to use in the tooltip
tooltipFormat: $.spformat('{{offset:offset}} {{value}}'),
tooltipValueLookups: {
'offset': {
0: 'unit001',
1: 'unit002',
2: 'unit003',
3: 'unit004',
4: 'unit005',
5: 'unit006',
}
},
});
Not Well formatted time in tooltip
A Tooltip is divided time format in three part 00,00 and 80