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     GRAPHs GRAPHs GRAPHs :)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
GRAPHs GRAPHs GRAPHs :)
 Login/Join
 
Silver Member
posted
I am new in making GRAPHs with WF, so mayby someone could help me in making a GRAPH?

I have a table with raw data:
-------------------------------------------------
| OBJECT_ID | PRICE | LOCATION | TIME |
-------------------------------------------------
| 000000001 | 0800 | AFRICA | 2005-10-25 |
-------------------------------------------------
| 000000001 | 3400 | EUROPE | 2005-10-25 |
-------------------------------------------------
| 000000001 | 1500 | N. AMERRICA | 2005-10-25 |
-------------------------------------------------
| 000000001 | 5500 | S. AMERRICA | 2005-10-25 |
-------------------------------------------------
| ... | ... | ... | ... |
-------------------------------------------------
| 000000001 | 1000 | AFRICA | 2005-10-26 |
-------------------------------------------------
| 000000001 | 3500 | EUROPE | 2005-10-26 |
-------------------------------------------------
| 000000001 | 1100 | N. AMERRICA | 2005-10-26 |
-------------------------------------------------
| 000000001 | 3000 | S. AMERRICA | 2005-10-26 |
-------------------------------------------------

I want to make a GRAPH which represents the price dinamics in diferent locations in time scale.

X axis should be TIME
Y axis should be PRICE
and LOCATION should be represented in different color lines. Confused

I am making this graph in quite inefficient way:
1) making HOLD for every value in LOCATIONs
2) JOIN them all together by TIME column
3) making a graph:
GRAPH FILE AAA1
PRINT
PRICE_1 AS 'Price 1'
.....
PRICE_N AS 'Price N'
ACROSS TIME
...
END

I think this is not an efficient way isn't it? Smiler
Moreover, it is not dinamic (!! Mad )
[of course I can use cycles and make it dynamic Big Grin but how to make it eficient? Confused ]

I think there should be a GRAPH trick, isn't it? Smiler
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 2005Report This Post
Silver Member
posted Hide Post
I need something like:

GRAPH FILE RAW_DATA
SUM PRICE
ACROSS TIME
BY LOCATION
END

but in one GRAPH (merged) Big Grin
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 2005Report This Post
Expert
posted Hide Post
Motiejus,

The bare minimum you will need to graph your data (providing it is in a single file as you detail) is -

GRAPH FILE filename
SUM PRICE
BY LOCATION
ACROSS TIME
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH SET GRMERGE ON
END

Of course, if you then expand your options by using Perspective for Java you can achieve many graph types etc. but for now the above code will set you on your way.

T
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Silver Member
posted Hide Post
Statement "SET GRMERGE=ON" returns me an "Posibele Error on: Angelo();" Mad

SET GRMERGE=ON
GRAPH FILE RAW_DATA
SUM PRICE
ACROSS TIME
BY LOCATION
END

...maby it is because there are a lot of locations Confused Confused
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 2005Report This Post
Expert
posted Hide Post
What version are you using and just how many locations do you have?
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Silver Member
posted Hide Post
Thanks Tony!!!! Smiler

Your code works!!!!

You are GRAPH guru Big Grin
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 2005Report This Post
Silver Member
posted Hide Post
What a beatifull graph you can get when there are 43 locations Smiler Smiler Smiler
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 2005Report This Post
Expert
posted Hide Post
Glad to be of help
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Silver Member
posted Hide Post
Tony,

there are 3307 diferent locations Smiler che che Smiler Big Grin
I think this is too much for WF
(at least for release R720533B )
Big Grin

Anyway, I think graph with 3307 different lines whould be too informative Eeker Smiler Smiler

p.s.: even 43 is too much Smiler
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 2005Report This Post
Expert
posted Hide Post
Let alone completely cluttered thus rendering it potentially useless to the end user? Unless, of course, you printed it out using a plotter on A00 paper. Roll Eyes Razzer Cool
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     GRAPHs GRAPHs GRAPHs :)

Copyright © 1996-2020 Information Builders