I tried with following code in Flot char to draw a chart. Chart is plotting as expected but not tooltip
The easiest way to solve your problem is to replace the content
string with a callback:
tooltipOpts : {
content : getTooltip,
defaultTheme : false
},
I defined getTooltip
to get your desired output:
function getTooltip(label, x, y) {
return "Your sales for " + x + " was $" + y;
}
It works, as you can see in the updated jsFiddle, but you may want to consider the advice of captain, in comments, and see what's best in your case.