Focal Point
svg, 3d and 1 solid color

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

November 15, 2007, 10:00 AM
Pam Kratt
svg, 3d and 1 solid color
I've been trying to recreate my problem using the car file but for some reason my svg graphs only appear as a placeholder on my desktop developer so I can't show you what is happening to me.

I am creating a svg graph that is 3d. If I have only 1 color (one item appearing that is 100%), the 3d function goes funky (nice technical word). IBI's solution a few years back was to remove the 3d option. The business really wants 3D. Does anyone have a work around? I'll put my code that it's happening on since I can't recreate with the car file:

SET LOOKGRAPH=PIE
SET 3D=ON

GRAPH FILE HOLD340
SUM XPCT_OF_PORTFOLIO AS ' '
ACROSS XCATEGORY
WHERE ( XCATEGORYID NE 'ZTOTAL');
ON GRAPH SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR=NONE,
STYLE=NORMAL,
$
ENDSTYLE
ON GRAPH SET LOOKGRAPH PIESINGL
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET GRAPHSTYLE *
setPieRotate(45);
setLabelStagger(getO1Label(),true);
setLabelStagger(getPieSliceLabel(),true);
setO1LabelStagger(true);
setPieFeelerTextDisplay(2);
setPieLabelDisplay(1);
setFillColor(getSeries(0),new Color(255,0,0));
setFillColor(getSeries(1),new Color(0,0,255));
setFillColor(getSeries(2),new Color(255,255,0));
setFillColor(getSeries(3),new Color(50,205,50));
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(false);
setUseSeriesBorderDefaults(true);
setFillMissingData(0);
setLegendPosition(2);
setPlace(true);
setTextJustHoriz(getLegendText(),0);
setAutofit(getLegendText(),true);
setFontSizeVC(getLegendText(),1800);
setLegendMarkerPosition(0);
ENDSTYLE
ON GRAPH SAVE AS HOLD800 FORMAT SVG
END

Thanks.


webfocus 8.105M; os: windows; pdf, html, exl2k, csv
November 15, 2007, 10:23 AM
Prarie
Pam,

Graphs have come a long long way since 5.3.3...I hope you are planning an upgrade.
I have a graph that I think was created in 5.3 and I have some coloring done in the Stylesheet and it is 3D...I don't remember why it was done this way.
TYPE=DATA,
ACROSSCOLUMN=N1,
COLOR=RGB(51 102 255),
$
TYPE=DATA,
ACROSSCOLUMN=N2,
COLOR='RED',
$
TYPE=DATA,
ACROSSCOLUMN=N3,
COLOR='YELLOW',


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
we were planning on starting our upgrade last month but some additional costs were thrown out there from IBI which forced the project into next year. I will let management know about the improvements and perhaps that will help them in their case to their mgmt to get the new release going! Thanks for the info.


webfocus 8.105M; os: windows; pdf, html, exl2k, csv
problem solved ... we changed the degrees (setPieRotate) to 90 and it looks good!


webfocus 8.105M; os: windows; pdf, html, exl2k, csv