Focal Point
[SOLVED]different color LOOKGRAPH VAREA

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

November 10, 2015, 12:49 PM
SWES
[SOLVED]different color LOOKGRAPH VAREA
Hi,

When using ON GRAPH SET LOOKGRAPH VAREA, is it possible to set a darker color for the 'line' than the 'area' underneath it? In other words, to set two different colors for the 'line' and the 'area'?

Thanks, SWES

This message has been edited. Last edited by: SWES,
November 13, 2015, 05:45 AM
SWES
Here's an example of what I am looking for in WebFOCUS:



Would anyone have a suggestion for me if this is possible and how to realize?

Thanks, SWES


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
November 15, 2015, 07:01 AM
Tony A
Set the border colour -

setBorderColor(getSeries(0), new Color(11, 161, 75));


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 15, 2015, 10:04 AM
Tony A
Alternatively, use the same value as a second series and change the series riser type to a line, then colour it as you need. A bit OTT but it gives you what you're asking for -

GRAPH FILE CAR
  SUM DEALER_COST AS ''
      DEALER_COST AS ''
   BY CAR
ON GRAPH SET LOOKGRAPH VAREA
ON GRAPH SET GRAPHEDIT OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRID OFF
ON GRAPH SET GRAPHSTYLE *
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPlace(true);

setDisplay(getLegendArea(), false);
-* Change series type to area riser - could be used if GRAPHLOOK VLINE
setSeriesType(0, 3);
-* Set to solid color fill
setFillType(getSeries(0), 1);
-* Set the colour
setFillColor(getSeries(0), new Color(212, 231, 210));

-* Set the second series to a line
setSeriesType(1, 2);
-* Set the colour
setFillColor(getSeries(1), new Color(11, 161, 75));
-* Set the line width
setLineWidth(getSeries(1), 1);
-* Set the marker size
setMarkerSize(1, 40);

ENDSTYLE
END
-RUN


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 16, 2015, 08:46 AM
SWES
Thanks again Tony, this is exactly what I was looking for.


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup