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.
I am trying to create a blue background color for heading of a chart. I have 2 lines in my heading like "Profit Amount is $100K" "Budget Amount is $ 20K" when I give the background color in the style sheet, It just colors the background till the end of these lines. But, I would like to extend this background color through the width of the chart like a banner. Is it possible to do some styling within in the chart to achieve this?? Please let me know if you have any inputs on this. Thank you.
Note: I tried using &|nbsp to add space, then the heading background color is not uniform. It is like having two separate lines with color or I might be missing something with &|nbsp.
Regards BI DEVThis message has been edited. Last edited by: FP Mod Chuck,
Is there a way to achieve this using an external css in the graph and use a css class for the heading? or Should I use HTML form?This message has been edited. Last edited by: BI Dev,
Please show all of your "TYPE=HEADING" lines in your style section. For this, all you should need is "TYPE=HEADING, BACKCOLOR=RGB(170 200 230), $". comment out, or delete, the rest of the "TYPE=HEADING" lines
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
You can use an external css sheet or just use an HTMLFORM block to add in the one css property.
You will need to make sure that you have SET EMBEDHEADING=OFF included in the top of the fex. Otherwise it will be a foriegn object within the svg of the graph. by setting it to OFF, it created the title as a div that is 100% wide right above the graph. Then you can style that div with the css. See the example below:
ENGINE INT CACHE SET ON
SET PAGE-NUM=OFF
SET EMBEDHEADING=OFF
GRAPH FILE CAR
SUM SALES
BY CAR
HEADING
"Profit Amount is $100K"
"Budget Amount is $20K"
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET AUTOFIT ON
ON GRAPH SET LOOKGRAPH BAR
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/endeflt.sty,$
TYPE=HEADING, JUSTIFY=CENTER, $
TYPE=DATA, COLUMN=N1, BUCKET=x-axis, $
TYPE=DATA, COLUMN=N2, BUCKET=y-axis, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN NOEVAL
<head>
<style>
body > div:nth-child(1) {
background-color:#ff0000;
}
</style>
</head>
-HTMLFORM END
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015
GRAPH FILE CAR SUM SALES BY CAR HEADING "Profit Amount is $100K" "Budget Amount is $20K" ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET AUTOFIT ON ON GRAPH SET LOOKGRAPH BAR ON GRAPH SET STYLE * *GRAPH_SCRIPT