As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
To modify what Neelima posted because if I understand your request, you want some tool tips to show ONLY percentage, where some ONLY show values.. This would take putting in a tool tip method call for each series. The initial tooltip will be default, and can be overridden by the series: # ones.
GRAPH FILE EMPDATA
SUM EMPDATA.EMPDATA.SALARY
BY EMPDATA.EMPDATA.DIV
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET STYLE *
*GRAPH_JS
series: [
{
series:'reset', showDataValues:true,
tooltip: function(v, s, g) {
return 'Buy: $' + v +' Series: ' + s;
}
},
{
series: 1,
tooltip: function(v, s, g) {
var total = 0;
//NOTE: == 8.0.xx code =============
//get the total of all groups.
//pv.sum works only for 8.0.xx and prior..
//==================================
//total = pv.sum(this.data[g], function(el){return el;});
//========= EO 8.0.xx code =========
//NOTE: == 8.1.xx code =============
//get the total of all groups.
//This below only works for 8.1.xx and up..
//==================================
var valueArr = this.data[0];
for (var i=0 ;i<valueArr.length;i++) {
total+=valueArr[i].value;
}
//========= EO 8.1.xx code =========
var sum = v / total * 100 ;
return 'Percentage ' + sum.toFixed(2) + '%';
}
},
{
series: 2,
tooltip: function(v, s, g) {
return 'Value: $' + v;
}
}
],
dataLabels: {
visible: true,
position: 'middle',
}
*END
ENDSTYLE
END
This message has been edited. Last edited by: GavinL,
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server