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     [Solved]How to use the tooltipn Template Macro to Customize Tooltips?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]How to use the tooltipn Template Macro to Customize Tooltips?
 Login/Join
 
Platinum Member
posted
Hi All,

Has anyone used the tooltipn Template Macro to access a data element to be included in a customized tooltip using version 8.201M charting?

The documentation says the Macro name is tooltipn with a definition - The nth field in the tooltip attribute category.

FYI - the following macro ... {{series_label}} ... brings back the Series label but I can't seem to get the tooltipn macro to work.

If anyone has an example ... I would like to see it.

Thanks

This message has been edited. Last edited by: jfr99,


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Platinum Member
posted Hide Post
Ahh ... Figured it out.

I had a NOPRINT on the field I was using for the BUCKET=tooltip as below ...

TYPE=DATA, COLUMN=N3, BUCKET=tooltip, $

So now the macro {{tooltip1}} displays the contents of column N3

Cheers


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Guru
posted Hide Post
Could you please show a working example of this technique? It looks interesting to me. Thanks.


Webfocus 8
Windows, Linux
 
Posts: 258 | Location: Palm Coast, FL | Registered: February 05, 2010Report This Post
Platinum Member
posted Hide Post
Here's a pie chart using the CAR file. I created a custom tooltip for series 1 and 2. You can see what it does automatically with the tooltips on the other series.

 GRAPH FILE CAR
SUM DEALER_COST AS 'Dealer Cost'
COMPUTE MY_SERIES/A10 = COUNTRY;
COMPUTE MY_VALUE/A10  = FPRINT(DEALER_COST, 'D7', 'A10');
COMPUTE MY_PCT/A8     = FPRINT(PCT.DEALER_COST, 'P6.2%', 'A8');
BY COUNTRY AS 'Country'
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=DATA, COLUMN=N1, BUCKET=color, $
TYPE=DATA, COLUMN=N2, BUCKET=measure, $
TYPE=DATA, COLUMN=N3, BUCKET=tooltip, $
TYPE=DATA, COLUMN=N4, BUCKET=tooltip, $
TYPE=DATA, COLUMN=N5, BUCKET=tooltip, $
*GRAPH_JS_FINAL
"series": [
	{"series": 1, 
		"tooltip": 'ToolTip1: {{tooltip1}}<br>ToolTip2: {{tooltip2}}<br>ToolTip3: {{tooltip3}}'
	},
	{"series": 2, 
		"tooltip": '{{tooltip1}}<br>${{tooltip2}} ({{tooltip3}})'
	},
]
*END
ENDSTYLE
END 

This message has been edited. Last edited by: jfr99,


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Guru
posted Hide Post
Thanks. I just realized that must be a new feature in 8.2. I'm on 8.105 and it didn't recognize the GRAPH_JS_FINAL statement. Nice to know what's possible in 8.2 though.


Webfocus 8
Windows, Linux
 
Posts: 258 | Location: Palm Coast, FL | Registered: February 05, 2010Report 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     [Solved]How to use the tooltipn Template Macro to Customize Tooltips?

Copyright © 1996-2020 Information Builders