Focal Point
[SOLVED] Changing the colors on a Line Graph that has 3 lines

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

February 20, 2007, 01:28 PM
Nailzz
[SOLVED] Changing the colors on a Line Graph that has 3 lines
Has anyone experience creating a line graph that has 3 lines. My problem is that two of the lines are showing the exact same color. Does anyone know the commands that will allow me to change the colors on a line graph?

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.1.3 on Win 2000
February 20, 2007, 01:48 PM
Prarie
try this
setFillColor(getSeries(0),new Color(255,0,0));
setAxisAssignment(getSeries(1),1);
setFillColor(getSeries(1),new Color(255,153,0));
setAxisAssignment(getSeries(2),1);
setFillColor(getSeries(2),new Color(249,0,249));


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
The following commands are used to set the color of a series. The number (0, 1, or 2) indicates the series. In this case there are three lines on the graph.

setSeriesFillColor(0,new Color(255,0,255));
setSeriesFillColor(1,new Color(0,255,0));
setSeriesFillColor(2,new Color(0,0,255));


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
Perfect! Thanks mgrackin this worked like a charm!


WebFOCUS 7.1.3 on Win 2000
Thanks Guys,

I couldn't find my personal archived sample of this. Howver, I knew I could find it here at the POW.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206