Groups
Groups
Sign in
Groups
Groups
jQuery Sparkline
Conversations
About
Send feedback
Help
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 PM
7/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
7/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
3/20/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
3/20/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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}}')});
See
http://jsfiddle.net/gwatts/dcfkoae1/
And documentation:
https://omnipotent.net/jquery.sparkline/#tooltips
Gareth
Sukanya P
unread,
Mar 21, 2018, 12:31:19 AM
3/21/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jQuery Sparkline
Thank you very much. It's worked.
Reply all
Reply to author
Forward
0 new messages