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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Graph editor?
 Login/Join
 
Silver Member
posted
I'd like to have some pie charts whose pieces detach as I click on them. It seems it is (was) possible using the graph editor with the older graph engine. From what I've read in the forums are supposed to be able to access this after setting SET GRAPHENGINE = OLD, then going through the graph assist. This doesn't work for me.
Regardless, am I understanding this correctly that the graph editor and the options available in the editor are NOT ALL available in the graph assistant?
If not is there a workaround for detaching pie slices?

Thanks


wf 767 running on w2k3 srvr
 
Posts: 46 | Registered: September 22, 2006Report This Post
Virtuoso
posted Hide Post
Shawn,

Please go to your profile and edit your signature with what version of WebFocus you are on.
Try this.
GRAPH FILE CAR
SUM SALES
ACROSS COUNTRY
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET GRAPHEDIT SERVER

ON GRAPH SET VAXIS 480
ON GRAPH SET HAXIS 640
ON GRAPH SET GRAPHSTYLE *

-* The lines below detach the slices from the pie
-* The acceptable distance range is 0-100
-* The Series argument for this graph is:
-* 0=ENGLAND, 1=FRANCE, 2=ITALY, 3=JAPAN, 4=W GERMANY
setPieSliceDetach(getSeries(0),50);
setPieSliceDetach(getSeries(1),50);
setPieSliceDetach(getSeries(2),50);
setPieSliceDetach(getSeries(3),50);
setPieSliceDetach(getSeries(4),25);

ENDSTYLE
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
END


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Silver Member
posted Hide Post
Thanks Prarie, I have the slices detaching now. I do have another question which I can't find a solution for. How do you get the series number? For example if you always wanted a specific country always separated from the rest of the pie, but you don't know what series value it is because countries can be added and removed from the report. I would think there would be a getSeriesByValue("ITALY") option.

Thanks


wf 767 running on w2k3 srvr
 
Posts: 46 | Registered: September 22, 2006Report This Post
Virtuoso
posted Hide Post
Shawn,

Here is a solution for the 'ITALY' question.

SET HOLDLIST=PRINTONLY
TABLE FILE CAR
SUM COUNTRY NOPRINT
RANKED BY COUNTRY NOPRINT
IF TOTAL COUNTRY EQ 'ITALY'
ON TABLE SAVE
END
-RUN
-READ SAVE,&SLICE
-RUN
-SET &SLICE=&SLICE - 1;

GRAPH FILE CAR
SUM SALES
ACROSS COUNTRY
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET GRAPHEDIT SERVER

ON GRAPH SET VAXIS 480
ON GRAPH SET HAXIS 640
ON GRAPH SET GRAPHSTYLE *

setPieSliceDetach(getSeries(&SLICE),50);

ENDSTYLE
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
END

This message has been edited. Last edited by: Danny-SRL,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Silver Member
posted Hide Post
Thanks Danny -
I was able to get it to work using something close to what you have, but I like yours better. So, I'm switching to it. Here is what I had:


-* &CNTRY_VAL is determined previously via click event
TABLE FILE CAR
BY COUNTRY
ON TABLE SAVE AS SERIES FORMAT ALPHA
END
-RUN
-*
-SET &SERIES= 0;
-REPEAT LOOP &LINES TIMES
-READ SERIES NOCLOSE &SERIESVAL.10.
-IF (&SERIESVAL EQ &CNTRY_VAL) GOTO EXITLOOP;
-SET &SERIES = &SERIES +1;
-LOOP
-*
-EXITLOOP
GRAPH FILE CAR
.
.
.
set PieSliceDetach(getSeries(&SERIES),50);
.
.
END


wf 767 running on w2k3 srvr
 
Posts: 46 | Registered: September 22, 2006Report This Post
Virtuoso
posted Hide Post
Shawn,
Glad to have helped.
Also, generally speaking, if one has the choice between a TABLE and a DM loop, it usually is more economic to use the TABLE. In your case, it doesn't really matter, except that, in the TABLE you can have an easier time if the screening conditions are more complex.
Regards,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders