You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the number (val) that's passed in begins with a 1 (e.g. 17527 or 123), then the leading $1 in the formatted tick is removed, resulting in something like 7,527 or 23 instead of $17,527 or $123...
I was scratching my head over this, as the ticks display correctly on the left side of the flot graph, but they display incorrectly in the hovered tooltip. For tooltipOpts, I have content: "%y".
The text was updated successfully, but these errors were encountered:
I believe the good solution is to make sure that $n never gets interpreted as a regex special value but as a dollar sign and a number, escaping dollars with a backslash should probably do the trick doesn't it ?
It seems that if I have a tickFormatter defined like so:
And the number (val) that's passed in begins with a 1 (e.g. 17527 or 123), then the leading $1 in the formatted tick is removed, resulting in something like 7,527 or 23 instead of $17,527 or $123...
I was scratching my head over this, as the ticks display correctly on the left side of the flot graph, but they display incorrectly in the hovered tooltip. For
tooltipOpts
, I havecontent: "%y"
.The text was updated successfully, but these errors were encountered: