Focal Point
[CASE OPEN] Graph Y-axis label format for HHIS (time)

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2437072176

June 19, 2014, 04:48 PM
Francis Mariani
[CASE OPEN] Graph Y-axis label format for HHIS (time)
How do I get the Y-axis label to display the HHIS time properly? In the example below, the report displays the column correctly, HH:MM:SS, but the graph tacks on AM/PM, which I do not want.

TABLE FILE EMPLOYEE
SUM
COMPUTE HIRE_DATE_YYMD/YYMD = HIRE_DATE; NOPRINT
COMPUTE MEASURE1/HYYMDS = HDTTM(HIRE_DATE_YYMD, 8, 'HYYMDS'); NOPRINT
COMPUTE MEASURE2/HHIS = HADD(MEASURE1 , 'SECOND', CURR_SAL, 12, 'HYYMDS');
BY FIRST_NAME
ON TABLE HOLD AS H001
END
TABLE FILE H001
SUM
MEASURE2
BY FIRST_NAME
END
GRAPH FILE H001
SUM
MEASURE2
BY FIRST_NAME
ON GRAPH SET HAXIS 800
ON GRAPH SET VAXIS 360
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET UNITS PIXELS
ON GRAPH SET GRMERGE ON
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF

END

This message has been edited. Last edited by: Francis Mariani,


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
June 20, 2014, 03:18 AM
Ram Prasad E
Just an idea. Convert to decimal format instead of date time representing 2:08:00 PM to 14.08

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
June 20, 2014, 09:55 AM
Francis Mariani
That would eliminate the seconds in hh:mm:ss.


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
June 20, 2014, 10:06 AM
Wep5622
Perhaps the regional settings on the reporting server specify to use AM/PM?


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 :
June 25, 2014, 02:02 PM
Francis Mariani
Since the regional settings are not affecting the report but are affecting the graph, my bet is that the regional settings are not the answer to my problem. So I would like to keep this open, or I might as well open a Tech Support case.


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
June 25, 2014, 02:03 PM
Francis Mariani
And which regional setting affects this? I have no knowledge of a setting in the WebFOCUS reporting server that affects how time is displyed...


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
June 26, 2014, 07:28 AM
Wep5622
Those would be the regional settings of your server's OS.

AFAIK, the graphs are created using (an adapted version of perspective for) Java. Java might be reading those settings directly from the OS, bypassing what WF specified for itself.

It's just a guess.


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 :
June 26, 2014, 10:50 AM
Francis Mariani
On my PC, I changed the Windows Region and Language settings for Short time and Long time to display without AM/PM. I then ran my test code and the graph labels still contain AM/PM, so it appears it's not the server settings. In my experience, the Perspective for Java graph labels are terribly inconsistent.


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
June 26, 2014, 02:37 PM
Tony A
Hi Francis,

I agree with you in that it's nothing to do with regional settings.

Have a look at this link which may give some insight, or trigger a thought? Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10