IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Changing the colors on a Line Graph that has 3 lines
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Silver Member
Posted
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
 
Posts: 45 | Location: North Carolina | Registered: February 17, 2005Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
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));


WebFOCUS 7.6.1 Win 2003 Test -7.6.5
 
Posts: 1188 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
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

WebFOCUS 7.1.3 /// Windows 2003 Server /// Oracle Data Sources /// HTML, PDF, EXCEL Output
 
Posts: 933 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteEdit or Delete MessageReport This Post
Silver Member
Posted Hide Post
Perfect! Thanks mgrackin this worked like a charm!


WebFOCUS 7.1.3 on Win 2000
 
Posts: 45 | Location: North Carolina | Registered: February 17, 2005Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Thanks Guys,

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



Current Client: WebFOCUS 7.1.4 Client: Windows, Reporting Server: Unix, Data: Oracle, Teradata
Local Laptop: WebFOCUS 7.6.5 on Vista/Apache/Tomcat, Data: FOCUS, MS Access
 
Posts: 100 | Location: Live: Clemmons, NC, Work: HPHC, Wellesley, MA | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Changing the colors on a Line Graph that has 3 lines

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.