>>75371455
I'm using jQuery sparklines, and below is a code to make it, however, I have around 400 variables, and I don't think repeating is a good practice, how to solve it?
The code
$('#sparkline_var1_x').sparkline(var1, {
type: "bar",
barColor: '#fc3944',
tooltipFormat: '{{offset:offset}} {{value}}',
tooltipValueLookups: {
'offset': labels
}
});
</wbr>