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] Data values in a line graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Data values in a line graph
 Login/Join
 
Member
posted
Hi,

I have a line graph with data values. So I have
setDisplay(getDataText(),true);
.

This shows a value for each X axis value. Instead, I need to show only first and last value. I know it's possible to show/hide data values for individual series, i.e.
setDisplay(gestDataText(0),true 
and so on, but I am not able to show only the two values mentioned.

I've tried with
setDisplay(getDataText(0,1),true);
but doesn't work.

Any suggestions?

Thank's in advice.

Ferran

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


WF 7.7.03,Win XP Pro.
HTML, PDF, EXCEL, AHTML, FLEX, APDF.
SQL Server, MySQL, DB2, FOCUS.
 
Posts: 19 | Registered: February 04, 2011Report This Post
Expert
posted Hide Post
Looks like it doesn't support it.

What does the documentation say ?


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
Member
posted Hide Post
quote:
setDisplay(getDataText(0,1),true);


The numbers for getDataText are for the series, not the data points.

If you know what the first and last values are of the graph, you could try something like this:

  
GRAPH FILE CAR
SUM 
    COMPUTE A/D18.2=IF COUNTRY EQ 'ENGLAND' THEN DEALER_COST ELSE -1 ;
    COMPUTE B/D18.2=IF COUNTRY EQ 'W GERMANY' THEN DEALER_COST ELSE -1 ;
    DEALER_COST
 BY COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
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
ON GRAPH SET GRAPHSTYLE *
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(0);
setUseSeriesShapes(true);
setMarkerSizeDefault(50);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDisplay(getDataText(0),true);
setDisplay(getDataText(),true);
setDisplay(getDataText(2),false);
setDisplay(getLegendArea(),false);
setY1ScaleMinAuto(false);
setY1ScaleMin(0.0);
setY1OffScaleDisplay(false);
ENDSTYLE
END


Essentially you can add additional data lines on your graph, and display the data values on those lines. The last 3 graph statements cover up unnecessary data points:
 setY1ScaleMinAuto(false);
setY1ScaleMin(0.0);
setY1OffScaleDisplay(false);
 


If you don't know the first and last value, then you could do another call to your table and place the min and max values in two parameters


WebFOCUS 77, Windows, HTML PDF EXCEL
 
Posts: 11 | Registered: November 28, 2011Report This Post
Member
posted Hide Post
Waz,

The documentation says:

getDataText()
This method returns the object ID of a graph's data text.
Syntax:
IdentObj getDataText();
IdentObj getDataText(int s, int g);

where:
s
Is a series number.
g
Is a group number.

It seem's that the only way to do that is by ebaig's suggestion.

Thank's!


WF 7.7.03,Win XP Pro.
HTML, PDF, EXCEL, AHTML, FLEX, APDF.
SQL Server, MySQL, DB2, FOCUS.
 
Posts: 19 | Registered: February 04, 2011Report This Post
Member
posted Hide Post
It works ebaig, thank you very much!. It will be this a nice new feauture in next WF versions? Smiler


WF 7.7.03,Win XP Pro.
HTML, PDF, EXCEL, AHTML, FLEX, APDF.
SQL Server, MySQL, DB2, FOCUS.
 
Posts: 19 | Registered: February 04, 2011Report This Post
Member
posted Hide Post
Hi again,

One suggestion about ebaig's solution. If you change your compute statements using missing values:
COMPUTE A/D18.2 MISSING ON=IF COUNTRY EQ 'ENGLAND' THEN DEALER_COST ELSE MISSING ;
COMPUTE B/D18.2 MISSING ON=IF COUNTRY EQ 'W GERMANY' THEN DEALER_COST ELSE MISSING;


You have no need to use
setY1OffScaleDisplay(false);


Best regards,


WF 7.7.03,Win XP Pro.
HTML, PDF, EXCEL, AHTML, FLEX, APDF.
SQL Server, MySQL, DB2, FOCUS.
 
Posts: 19 | Registered: February 04, 2011Report 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] Data values in a line graph

Copyright © 1996-2020 Information Builders