Focal Point
[SOLVED] GRAPH FIELD TITLE STYLE

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

October 14, 2014, 09:15 AM
Ian Dalton
[SOLVED] GRAPH FIELD TITLE STYLE
I am trying to get the SALES title in the code below to be a different font and colour. The equivalent code below in a TABLE FILE works fine but not for GRAPH - any suggestions ?
I am sure it's something simple !!

SET PIE=ON
GRAPH FILE CAR
SUM SALES AS 'COUNTRY SALES'
BY COUNTRY
ON GRAPH SET STYLE *
$
TYPE=TITLE,
COLUMN=SALES,
FONT='VERDANA',
COLOR='RED',
$
ENDSTYLE
END
-RUN

This message has been edited. Last edited by: <Kathryn Henning>,


_______________________
*** WebFOCUS 8.1.05M ***
October 14, 2014, 09:42 AM
Alan B
Ian
Is this what you want?
SET PIE=ON
GRAPH FILE CAR
SUM SALES AS 'COUNTRY SALES'
BY COUNTRY
ON GRAPH SET GRAPHSTYLE *
setFontName(getLegendText(),"Verdana");
setFillColor(getLegendText(),new Color(255,0,0));
ENDSTYLE
END



Alan.
WF 7.705/8.007
October 14, 2014, 10:00 AM
Ian Dalton
Close Alan.
What your suggestion does is make the legend red. I want the title 'COUNTRY SALES' to be in red and a specific font.
Many thnaks,
Ian


_______________________
*** WebFOCUS 8.1.05M ***
October 14, 2014, 10:24 AM
Alan B
Ah, ok.
SET PIE=ON
GRAPH FILE CAR
SUM SALES AS 'COUNTRY SALES'
BY COUNTRY
ON GRAPH SET GRAPHSTYLE *
setFontName(getPieLabel(),"Verdana");
setFillColor(getPieLabel(),new Color(255,0,0));
ENDSTYLE
END



Alan.
WF 7.705/8.007
October 14, 2014, 10:34 AM
Ian Dalton
Nice one Alan - works a treat.


_______________________
*** WebFOCUS 8.1.05M ***