Focal Point
White border around the outline of a graph

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

April 29, 2005, 09:20 AM
Pete
White border around the outline of a graph
Hi,

We are trying to display a graph on a blue page
so far we managed to turn the background of graph itself into blue , but we are still left with a white border and we dont seem to be able to get rid of it

any suggestions ?


P.
April 29, 2005, 12:06 PM
Pete
here is an example

DEFINE FILE CAR
NSEATS/I5=IF COUNTRY EQ 'ENGLAND' THEN SEATS *(-1) ELSE SEATS;
ONELINE/I5=1;
END
GRAPH FILE CAR
SUM NSEATS ONELINE AS ''
ACROSS MODEL
ON GRAPH PCHOLD FORMAT GIF
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET GRAPHSTYLE *
setSeriesType(1,2);
setMarkerDisplay(false);
setSeriesFillColor(1, new Color(0,0,0));
setLineWidth(getSeries(1),.5);
setY1MinorGridDisplay(false);
setY1MajorGridStepAuto(false);
setY1MinorGridStepAuto(false);
setY1MajorGridStep(1.0);
setY1ScaleMinAuto(false);
setY1ScaleMaxAuto(false);
setScaleMin(getY1Axis(),-1);
setScaleMax(getY1Axis(),3);
setX1AxisLineDisplay(false);
setY1AxisLineDisplay(false);
setO1AxisLineDisplay(false);
setFrameDisplay(false);
setLegendDisplay(false);
setX1MajorGridDisplay(false);
setY1MajorGridDisplay(false);
setO1MajorGridDisplay(false);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
ORIENTATION=PORTRAIT,
BACKCOLOR=RGB(200 200 255),
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=8,
BACKCOLOR=RGB(200 200 255),
STYLE=NORMAL,
$
ENDSTYLE
END

-HTMLFORM BEGIN

html>

HEAD>


style type="text/css">
body {background : RGB(200 200 255)}
style>
body>
FORM>
-HTMLFORM END
April 29, 2005, 12:09 PM
<JG>
Unfortunately There is no way to get around the one pixel wide border that the java graph API generates.
Although

setFillColor(getChartBackground(), new Color(245,175,224));
setFillColor(getFrame(), new Color(245,175,224));
will turn the graph to another color there is no API call that affects the chartedge.
The same happens for all of the available output formats.

This is wrong please see later post
April 29, 2005, 12:31 PM
Pete
i thought so , but still i'm hoping for somekind of work around
April 29, 2005, 12:55 PM
<JG>
Sorry Pete I told a lie what you need is

setFillColor(getChartBackground(), new Color(200,200,255));
setBorderColor(getChartBackground(),new Color(200,200,255));
setFillColor(getFrame(), new Color(200 200 255));
April 29, 2005, 01:02 PM
Pete
Thanks !!! it works like a charm !