Focal Point
[Closed] borders on stacked bar charts

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8187030576

March 09, 2015, 10:17 AM
GavinL
[Closed] borders on stacked bar charts
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
March 09, 2015, 10:25 AM
GavinL
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
March 09, 2015, 01:20 PM
GavinL
series: [{
series:'reset',
border: {color: 'white'},
showDataValues:true
}],



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server