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] Set X1 Label Format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Set X1 Label Format
 Login/Join
 
Platinum Member
posted
Hi there,
I'm trying to set the label format pattern for the X axis, but without sucess.
I already try:
setX1LabelFormat(-1);
setX1LabelFormatPattern("###(s)");

The values in the X axis are in seconds. For the Y axis works fine.
My graph is of the type Line.

My code:
  
GRAPH FILE DTGRAPH
-* Created by Advanced Graph Assistant
SUM DTGRAPH.SEG01.PCT-V1 AS 'V1'
DTGRAPH.SEG01.PCT-V2 AS 'V2'
BY DTGRAPH.SEG01.KPI
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
-* Displays missing values as zero.
ON GRAPH SET VZERO ON
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
-*ON GRAPH SET LOOKGRAPH VLNSTKPC
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1


Thanks in advanced,

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


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report This Post
Expert
posted Hide Post
Can you post the whole GRAPH FILE. In particular the GRAPHSTYLE?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
there is a very large pdf document that gives you a lot of setting details




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
I already search for the property in the pdf document (it's really huge) but without success. I already try to use properties like "setO1...".
My full code:
  
GRAPH FILE DTGRAPH
SUM DTGRAPH.SEG01.PCT-V1 AS 'V1'
DTGRAPH.SEG01.PCT-V2 AS 'V2'
BY DTGRAPH.SEG01.KPI
ON GRAPH SET GRAPHEDIT OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO ON
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
-*setTemplateFile("/images/tdg/template/IBIRIABlue.txt");
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setSelectionEnable(5);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setTransparentBorderColor(getChartBackground(),true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1LabelRotate(0);
setO1LabelFormat(28);
setFillColor(getSeries(0),new Color(125,166,205));
setFillColor(getSeries(1),new Color(245,23,67));
setMarkerShape(getSeries(0),0);
setMarkerShape(getSeries(1),0);
setFontSizeAbsolute(getO1Label(),true);
setFontSizeInPoints(getO1Label(),8);
setPlaceResize(getO1Label(),0);
setTextString(getY1Title(),"Taxa de Incidência (%)");
setDisplay(getY1Title(),true);setTickStyle(getO1MajorTick(),2);
setDisplay(getO1MajorTick(),false);
setSmoothLines(false);
setFontName(getDataText(),"Verdana");
setDisplay(getTitle(),true);
setFontName(getTitle(),"Verdana");
setFillColor(getTitle(),new Color(0,0,0));
setFontSizeAbsolute(getTitle(),true);
setFontSizeInPoints(getTitle(),10);
setPlaceResize(getTitle(),0);
setFontStyle(getTitle(),0);
setFillColor(getO1Title(),new Color(0,0,0));
setFontName(getO1Title(),"Verdana");
setFontSizeAbsolute(getO1Title(),true);
setFontSizeInPoints(getO1Title(),8);
setPlaceResize(getO1Title(),0);
setFontStyle(getO1Title(),0);
setTextString(getO1Title(),"Tempo (s)");
setDisplay(getO1Title(),true);
setFillColor(getO1Label(),new Color(0,0,0));
setFontName(getO1Label(),"Verdana");
setFillColor(getY1Label(),new Color(0,0,0));
setFontName(getY1Label(),"Verdana");
setFontSizeAbsolute(getY1Label(),true);
setFontSizeInPoints(getY1Label(),8);
setPlaceResize(getY1Label(),0);
setFillColor(getY1Title(),new Color(0,0,0));
setFontName(getY1Title(),"Verdana");
setFontSizeAbsolute(getY1Title(),true);
setFontSizeInPoints(getY1Title(),8);
setPlaceResize(getY1Title(),0);
setFontStyle(getY1Title(),0);
setBorderColor(getO1AxisLine(),new Color(0,0,0));
setBorderColor(getY1AxisLine(),new Color(0,0,0));
setFillColor(getLegendText(),new Color(0,0,0));
setDepthRadius(0);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setGridStyle(getY1MajorGrid(),0);
setLineBasicStrokeType(getY1MajorGrid(),12);
setDataTextPosition(4);
setDisplay(getDataText(),false);
setToolTipBackgroundColor(new Color (222,236,255));
setToolTipColor(new Color(0,0,0));
setToolTipBackdropSize(2);
setToolTipFontName("Verdana");
setToolTipFontStyle(4);
setUserToolTip("Value for [SL] is [YV]%");


Thanks in advanced,
Carlos Dias


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report This Post
Expert
posted Hide Post
I would suggest creating a String of the format you want, the use that as your sort field.

The issue is that your graph has an Ordinal axis, that cannot be formatted by the graph engine, ony X axises can be.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
SOLVED


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report This Post
Expert
posted Hide Post
Solved? How? Your answer may be helpful to someone else with the same problem.

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
Guru
posted Hide Post
I'm curious....


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
 
Posts: 272 | Location: Kalamazoo, Michigan | Registered: September 30, 2010Report This Post
Expert
posted Hide Post
Me too.



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
pitty he did not answer anymore




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report 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] Set X1 Label Format

Copyright © 1996-2020 Information Builders