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     Groups with different colors in a graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Groups with different colors in a graph
 Login/Join
 
Gold member
posted
Hi All,

I have a bar graph (GraphType 17) which basicaly shows Groups (ACROSS clause) and then series (BY clause) inside the groups.

I would like to have all series of a group to have the same color, but different groups would have a different combination.

Say Group 1 would have all bars of color Red, and Group 2 will have all bars of color Green.

How do I achieve it?

In a more technical language, "How would I refer to a series instance of a particular group in a graph, provided we know the group and series number"

Thanks,
Ved

WF 7.1.3


Web Focus 7.1.6
Hosted on Unix Box
 
Posts: 61 | Registered: August 17, 2007Report This Post
Virtuoso
posted Hide Post
Try this.

setFillColor(getSeries(0), new Color( 0, 0,250));
setFillColor(getSeries(1), new Color( 0, 0,200));
setFillColor(getSeries(2), new Color( 0, 0,150));


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Gold member
posted Hide Post
Hi Prarie,

If you use this, then the different series in the same group would have different colors. Also, the same series across groups would have the same color.

I want all the series in a particular group to be of the same color. However the same series in another group should have a different color.

I hope I was able to explain the requirement.
Else, please let me know I would try to get you a snapshot.

Thanks, Ved


Web Focus 7.1.6
Hosted on Unix Box
 
Posts: 61 | Registered: August 17, 2007Report This Post
Gold member
posted Hide Post
I got the answer to it...

setColorMode(2);

setFillColor(getGroup(0), new Color(222,236,255));
setFillColor(getGroup(1), new Color(222,0,0));
setFillColor(getGroup(2), new Color(0,80,80));


The setColorMode can have three values: 0, 1, 2.
If you put 2 as the value, then coloring is done by groups and not by series.


Web Focus 7.1.6
Hosted on Unix Box
 
Posts: 61 | Registered: August 17, 2007Report This Post
Virtuoso
posted Hide Post
Glad you have found this yourself Ved....




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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Groups with different colors in a graph

Copyright © 1996-2020 Information Builders