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     [NFR OPENED] GRAPH tooltip text formatting

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[NFR OPENED] GRAPH tooltip text formatting
 Login/Join
 
Virtuoso
posted
We have some graphs where the tooltip information as it is formatted by default gets really confusing. The tooltip puts data related to the data-point one axis after another, separated by spaces. Since we tend to use space for thousands separators as well, it's often unclear whether a space is an axis separator or a thousands separator, leading to users drawing wrong conclusions about either the correctness of our graphs or about the contents of the graph.

For example, we have a graph showing sales (Y1 axis) per month (Ordinal axis) per product range (Legend), which can result in a value: "AA 3 456 789". That value means that we sold 456,789 items of AA in March, but one could just as well read that tooltip to read we sold 3,456,789 items of AA in the month that the position on the ordinal axis corresponds to (in this case, March). We don't want people to throw parties over wrong information!

We'd much prefer that tooltip to read something like "AA: 3; 456 789", for example, where the legend-item is separated from the data-point value using a colon (':') and the data value coordinates are separated using a semi-colon(';') or a comma (',').

Is something like that possible? If so, how to achieve that?

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


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Platinum Member
posted Hide Post
You could insert line feed characters.
DEFINE FILE GGSALES
REGION/A13 = REGION | '\n';
END
GRAPH FILE GGSALES
SUM UNITS AS 'Units Sold\n'
BY REGION
END
  


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Expert
posted Hide Post
This is a decent solution, but has anyone figured out how to style the tooltip as Wep5622 asked?

It seems setUserToolTip might do the job...

Thanks,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Oh well.

How to change the Tooltip background color change outlines how to change the tooltip format, background colour etc. Unfortunately, GRAPHEDIT must be set to OFF to enable this, though there is no explanation why. Version 8 apparently does not have this restriction, so I'll have to wait at least a year before attempting this again.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
I've been experimenting a bit and it appears neither solution will be 100% satisfying.

Following dbeagan's solution with my initial example, we would end up with axis labels with undesirable characters in them, such as ': ' and '; '.
His suggested newline character seems a reasonable alternative to at least separate the field values such that they are not ambiguous to the user. Those newlines do not appear to have impact on the displayed legend (where those same labels are printed). I consider that a reasonable workaround at this moment.

Francis' suggestion is much more customisable with respect to the tooltips and that really got my hopes up! Unfortunately, it requires GRAPHEDIT=OFF, which results in the graphs being rendered as a browser-side Java applet. That's a bit slow. It does work fairly well though.

Fun fact, when you attempt to use the GRAPHEDIT=OFF type graph and specify ON GRAPH PCHOLD FORMAT PNG, because that's what you'd normally do when creating a graph in HTML output, then the graph doesn't use the Java applet (and thus the tooltips aren't styled as specified). It makes sense that the graph can't be rendered as a Java applet when you specify something else, but a warning or an error would have been helpful!


Finally; I do not get why it's apparently so hard to customise the tooltip format. Why do I need to run a Java applet to do so?
It seems to me that it would suffice to make the TITLE-attributes in the HTML AREA tags customisable in a similar way as how HEADINGs can be formatted.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 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     [NFR OPENED] GRAPH tooltip text formatting

Copyright © 1996-2020 Information Builders