Is there a way to change the default background color of the tooltip in jQuery Sparklines? I have not been able to find a simple solution to this and there hasn't seem to be a similar question for sparklines tooltips. I would like to change the background color from the transparent default color to a solid grey.
I am using a custom tooltipFormatter to create the text within the tooltip, e.g.
$('#sparkline').sparkline(data, {
type: 'bar',
tooltipFormatter: function(sparkline, options, fields) {
//<span>Stuff</span>
}
});
Thanks!
.jqstooltip {color: #80050c !important;background-color: #eff7ff !important;}
. The background changed but the text color didn't change. I couldn't figure out how to usetooltipClassname
as sugarenia suggested. Thanks for your help. – Rhinology