Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Changing color in 1 series

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Changing color in 1 series
 Login/Join
 
Member
posted
Hello,

I can't find in the documentation how I can change te color of a bar. I have a graph with 1 series and 3 different bars. I would like to assign different colors to the different bars. How can I change the colors.

Cheers Richar
 
Posts: 8 | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
RJL,
Please go into your Profile and add a signature line with what version you are using. Can make a difference in answering questions.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
I think these commands change the colours of the first four bars in a graph:

setFillColor(getSeries(0),new Color(0,0,255));
setFillColor(getSeries(1),new Color(255,0,0));
setFillColor(getSeries(2),new Color(255,255,0));
setFillColor(getSeries(3),new Color(0,255,0));


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Hello Francis,

That worked fine, thanks for the help. Do you also have an answer concerning my question about changing the font of the DATATEXT??

Cheers Richard
 
Posts: 8 | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
I'm not sure what
quote:
DATATEXT
is, but this might help:

-*TITLE OF GRAPH==========================================
setFontSizeAbsolute(getTitle(),true);
setFontName(getTitle(),"Arial");
setFontSize(getTitle(),14);
setTitleString("Daily Regional Net Sales");

-*X AXIS NUMBER ==========================================
setFontName(getO1Label(),"Arial Narrow");
setFontSize(getO1Label(),9);
setFontSizeAbsolute(getO1Label(),true);
setTextJustHoriz(getO1Label(),0);
setO1LabelAutofit(true);
setO1LabelWrap(false);

-* Y AXIS TITLE =========================================
setFontName(getY1Title(),"Arial Narrow");
setFontSize(getY1Title(),13);
setFontSizeAbsolute(getY1Title(),true);
setFontStyle(getY1Title(),2);

-* Y AXIS NUMBER =========================================
setFontName(getY1Label(),"Verdana");
setFontSize(getY1Label(),10);
setFontSizeAbsolute(getY1Label(),true);
setTextFormatPreset(getY1Label(),8);


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
How do you change the colors if you don't know the number of series you are going to have? Today can be 2 series, tommorrow 4, depending on that data for that day.


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
 
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005Report This Post
Virtuoso
posted Hide Post
I would suggest to download the pdf file wf713graph.pdf from the Information builders website.
It is for me a big helpful document. 1400 pages, don't print it!!!

Al the things you asked are in there and much more!




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
there wasn't any code in that manual
the entire thing is just pictures
a big catalog
but no 'how to'
or am i insane?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Master
posted Hide Post
Susannah,

Is this the manual you downloaded?
  http://documentation.informationbuilders.com/masterinde...ics/wf76graphics.pdf


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
Thanks. I've downloaded the file and will review it.


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
 
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005Report This Post
Expert
posted Hide Post
quote:
That worked fine, thanks for the help. Do you also have an answer concerning my question about changing the font of the DATATEXT??


Richard, there are about 9 properties for DataText listed in the manual but none of them refer to font. DataText is the text that sits on the bars to show the value. You can format how the number is displayed. Maybe you can combine one of the DataText properties with others that adjust the font.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
yes PB, that's the one.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
Susannah
I always use that manual if I want something that (obviously) not can be done with the GUI.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Master
posted Hide Post
I use the 5.3 version of it. It has lots of examples, but take another look there are instruction to go with them.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Thanks, Leah. Calling up a new windows sessions seems to have corrected the problem.


WebFOCUS 7.6.2
AIX
Output: HTML, AHTML, Excel, and PDF
 
Posts: 18 | Location: Omaha, NE | Registered: November 04, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Changing color in 1 series

Copyright © 1996-2020 Information Builders