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     [CLOSED] Conditional Image Next to Each Bar in Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Conditional Image Next to Each Bar in Graph
 Login/Join
 
Platinum Member
posted
Hey All,

I'm trying to think of a way to be able to put a traffic light next to a bar graph and wondering if there's a way to do it in FOCUS.

In the car file below, I'd like to place the "TREND" compute number next to each bar and make that a conditional image depending on whether the number is positive or negative.


GRAPH FILE CAR
SUM
	SALES
	COMPUTE TREND/D12 = (SALES - RETAIL_COST)/RETAIL_COST;
BY COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
-*ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='ARIAL', STYLE=BOLD, SIZE=11, COLOR=RGB(75 75 75), $
TYPE=FOOTING, LINE=1, ITEM=1, COLOR=RGB(0 77 113),$
TYPE=FOOTING, LINE=1, ITEM=2, OBJECT=TEXT, FONT='ARIAL', SIZE=8, STYLE=NORMAL, $
*GRAPH_SCRIPT
setDataTextDisplay(true);
setDataTextPosition(4);
setDisplay(getDataText(0), true);
*GRAPH_JS_FINAL
"pieProperties": {
    "holeSize": "0%"
},
"blaProperties": {
    "seriesLayout": "stacked",
    "orientation": "horizontal"
},
"agnosticSettings": {
    "chartTypeFullName": "Bar_Stacked_Horizontal"
}
*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH
 


Thanks in advance for your help and looking at this!!

This message has been edited. Last edited by: Brandon Andrathy,


WebFOCUS 8204
 
Posts: 152 | Registered: July 10, 2018Report This Post
Virtuoso
posted Hide Post
Brandon

Thought I answered this the other day but I guess not. You will have to use Traffic Light conditions on the Trend field when I tried to trick WF by creating a DEFINE of an image and reference that the graph would not open in the GUI again and did not display the image when running it from the text editor.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
Thanks Chuck, appreciate it! came up with another solution. This isn't typically a way for users to view data so went with another approach.


WebFOCUS 8204
 
Posts: 152 | Registered: July 10, 2018Report 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     [CLOSED] Conditional Image Next to Each Bar in Graph

Copyright © 1996-2020 Information Builders