How do I change the tooltip text for the target value in a bullet graph?

919 views
Skip to first unread message

1Cajun

unread,
Jul 27, 2012, 3:19:16 PM7/27/12
to jquery-s...@googlegroups.com
I want to change the target tooltip text in my bullet graph from "Target" to "Measurement" how do I accomplish this?

Gareth

unread,
Jul 27, 2012, 3:26:17 PM7/27/12
to jquery-s...@googlegroups.com
Pass in an option to the sparkline call: tooltipValueLookups: { fields: {r: 'Range', p: 'Performance', t: 'Measurement'} }

Sukanya P

unread,
Mar 20, 2018, 3:38:24 AM3/20/18
to jQuery Sparkline
How can I change the tooltip format in bullet graph from "Performance - xx" to "Performance: xx"?

Gareth

unread,
Mar 20, 2018, 10:48:10 AM3/20/18
to jQuery Sparkline
Hi

You can use a custom tooltipFormat - eg.

$("#sparkline").sparkline([10,12,12,9,7], {
    type: 'bullet', width: '200px', 
    tooltipFormat: $.spformat('{{fieldkey:fields}}: {{value}}')});



Gareth

Sukanya P

unread,
Mar 21, 2018, 12:31:19 AM3/21/18
to jQuery Sparkline

Thank you very much. It's worked.
Reply all
Reply to author
Forward
0 new messages