jQWidgets Forums
jQuery UI Widgets › Forums › Chart › toolTipFormatFunction documentation
Tagged: chart, toolTipFormatFunction
This topic contains 4 replies, has 4 voices, and was last updated by admin 8 years, 9 months ago.
-
Author
-
The toolTipFormatFunction documentation links to this fiddle: http://jsfiddle.net/jqwidgets/mPVXF/
The javascript panel for this fiddle only shows the first 101 lines. If I copy all, it has 201 lines, and some of them appear to be needed to get toolTipFormatFunction to work properly. However, when I paste all 201 lines back into the jscript panel, the fiddle does not work.
Is there a better example of how to use toolTipFormatFunction somewhere?
Thanks.
This might help a little… here is some code that I use…
$('#participation_Left').jqxBarGauge({ width: 600, height: 600, // title: {text:myTitle, subtitle: {text:'Mouse Over to See Categories'}}, //title: {text:'ABC'}, //values:[0,0,0,0], values:[vQtrField, vYTDField, vQtrTerritory, vYTDTerritory], baseValue: 0, max: 120, barSpacing: 9, animationDuration: 0, relativeInnerRadius: 0.2, startAngle: 0, endAngle: 360, colorScheme: 'scheme05', tooltip: { visible: true, formatFunction: function (value, index) { if (index ==0) {return '[Current Qtr Field Participation] ' + value + '%'}; if (index ==1) {return '[YTD Field Participation] ' + value + '%'}; if (index ==2) {return '[Current Qtr Territory] ' + value + '%'}; if (index ==3) {return '[YTD Territory] ' + value + '%'}; } } });
It’s not just copy-paste. It requires javascript references as well. You may look at the online demos and documentation to learn how to use the Chart.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Could you please tell me which demo shows the usage of the toolTipFormatFunction ?
Even the Chart’s demo you point out uses it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.