Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]tooltip to display the actual values of a percentage bar graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]tooltip to display the actual values of a percentage bar graph
 Login/Join
 
Member
posted
hi all,
I'm very new in Webfocus. i'm currently using application studio. Please help.
i have a graph (LOOKGRAPH VBRSTKPC). how can i display a tool tip that on hover on bar grrah Item, it will display the actual value of the graph instead of the percentage value.
my code is below..

ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';

GRAPH FILE PASTDUE_SMC
SUM OPEN_METRIC
BY E01
ACROSS DESCRIPTION COLUMNS 'Learn' AND 'Define' AND 'Assess' AND 'Buy' AND 'Post-Buy Learn'
HEADING
"&SETTEXTSTRING"
"&ONTIMESTRING"
"&PASTDUESTRING"
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH VBRSTKPC
ON GRAPH SET AUTOFIT ON
ON GRAPH SET SQUEEZE ON
ON GRAPH SET STYLE *

*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);

*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='Trebuchet MS', SIZE=9, COLOR=RGB(0 0 0), STYLE=BOLD, $
TYPE=HEADING, LINE=2, JUSTIFY=CENTER, FONT='Trebuchet MS', SIZE=9, COLOR=RGB(0 0 0), $
TYPE=HEADING, LINE=3, JUSTIFY=CENTER, FONT='Trebuchet MS', SIZE=9, COLOR=RGB(0 0 0), $
TYPE=DATA,
TARGET='_BLANK',
-*FOCEXEC=IBFS:/WFC/Repository/onc_master_template/smc_rep/rep_pastdue_drill_report.fex (STAGE=N2 TEAM='N' ASSOC='N' DRILL_TYP='N' HD='Current Past Due SMCs' GROUP_ID=&GROUP_ID.QUOTEDSTRING CREATED_BY_USER_CODE=&CREATED_BY_USER_CODE.QUOTEDSTRING CST_TEAM_LEADER_ID=&CST_TEAM_LEADER_ID.QUOTEDSTRING COMPANY_TYPE_CODE=&COMPANY_TYPE_CODE.QUOTEDSTRING STARTDATE=&STARTDATE.QUOTEDSTRING ENDDATE=&ENDDATE.QUOTEDSTRING CREATED_BY_USER_CODE_TEXT = &CREATED_BY_USER_CODE_TEXT.QUOTEDSTRING COMPANY_TYPE_CODE_TEXT = &COMPANY_TYPE_CODE_TEXT.QUOTEDSTRING CST_TEAM_LEADER_ID_TEXT = &CST_TEAM_LEADER_ID_TEXT.QUOTEDSTRING),
$
*GRAPH_SCRIPT
setReportParsingErrors(false);

setFillColor(getSeries(0),new Color(170,170,170));
setFillColor(getSeries(1),new Color(242,20,20));
setDisplay(getY1Title(),false);
setDisplay(getO1Title(),false);
setToolTipDisplay(true);

setDisplay(getY1MajorGrid(),false);
setDisplay(getX1MajorGrid(),false);
setFillColor(getFrame(),new Color(255,255,255));
setTransparentFillColor(getFrame(),true);
setFontName(getO1Label(),"TREBUCHET MS");
setFontName(getY1Label(),"TREBUCHET MS");

-*-------------------------------------------------
-* To disable the X and Y axis line
-*-------------------------------------------------
setBorderColor(getFrameSide(),new Color(255,255,255));
setBorderColor(getFrameBottom(),new Color(255,255,255));
setBorderColor(getChartBackground(),new Color(255,255,255));
setBorderColor(getY1AxisLine(),new Color(255,255,255));
setLineWidth(getY1AxisLine(),1);
setBorderColor(getO1AxisLine(),new Color(255,255,255));
setDisplay(getY1AxisLine(),false);
setDisplay(getY1ZeroLine(),true);
setBorderColor(getY1ZeroLine(),new Color(255,255,255));
setFillColor(getY1ZeroLine(),new Color(255,255,255));
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getY1Label(),28);
*END


*GRAPH_JS
"mouseOverIndicator":
{
"enabled": true,"color": ""
},
"riserBevel": "none",
series: [

{
tooltip:
function(v, s, g) {
if (typeof v === 'object' && v.hasOwnProperty('value')) {
v = v.value;
}
var sum = pv.sum(this.data[g], function(el){return el.value;});
return '' + this.getSeries(s).label + ": " + this.formatNumber(v, '$#,#')+ "("+this.formatNumber(v/ sum,'#.##%') +")";
}
},


]
*END
ENDSTYLE

END



thanks alot.
Nigel

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: October 05, 2015Report This Post
<Emily McAllister>
posted
Hello Neil,

Welcome to the Focal Point Forums!

Unfortunately I do not believe it is possible to get the tooltip to display actual value instead of a percentage fpor your version. However, in our latest version 8.2 this is possible and enabled by default.

Please let me know if you need any assistance,
Emily McAllister
Focal Point Moderator
 
Report This Post
Member
posted Hide Post
Thank you Emily for your Reply. Smiler


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: October 05, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]tooltip to display the actual values of a percentage bar graph

Copyright © 1996-2020 Information Builders