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] borders on stacked bar charts

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Closed] borders on stacked bar charts
 Login/Join
 
Master
posted
I'm struggling to get styling to work on a stacked bar chart. I'm wanting a border separation between the legend (series). Color mode is based on group, so I need a white line between the different series, but I've run out of ideas.. Here is what the bar chart looks like. For example: While looking at the chart below, I'm wanting a white line between Toyota and Datsun. Also between BMW and Audi.

ENGINE INT CACHE SET ON

-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';

GRAPH FILE CAR
SUM CAR.BODY.SALES
BY CAR.COMP.CAR
ACROSS CAR.ORIGIN.COUNTRY
WHERE CAR.BODY.SALES GT 0;
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getY1Title(),false);
setDisplay(getO1Title(),false);
setDisplay(getLegendArea(),false);
setColorMode(2);
*GRAPH_JS
"series": [{
  "series": "all",
  "showDataValues": true
 }],
 "dataLabels": {
  "position": "inside",
  "border": "3px solid #ffffff",
  "visible": true,
  "color": "black",
  "font": "Normal 8pt Arial",
  "displayMode": "seriesLabel"
 },
 "legend": {"visible": false},
 "riserBevel": "none",
 "introAnimation": {
  "enabled": false,
  "duration": 1400
 },
*END
ENDSTYLE
END

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



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Master
posted Hide Post
I found that I could do this:
setBorderColor(getSeries(0),new Color(255,255,255));
setBorderColor(getSeries(1),new Color(255,255,255));
setBorderColor(getSeries(2),new Color(255,255,255));
setBorderColor(getSeries(3),new Color(255,255,255));


But I don't know how many series may show up, so do I just create 20 of these or is there a better way?



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Master
posted Hide Post
series: [{
series:'reset',
border: {color: 'white'},
showDataValues:true
}],



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report 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] borders on stacked bar charts

Copyright © 1996-2020 Information Builders