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     [SOLVED] Bar Graph Colors

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Bar Graph Colors
 Login/Join
 
Virtuoso
posted
Anyone know a setting to make each Bar in a VBAR graph a different color?


GRAPH FILE FGRAPH
HEADING
" Call Graph"
SUM AVGWAITS AS ' '
ACROSS MORETIME AS ' '

ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD

ON GRAPH SET HTMLCSS OFF
ON GRAPH SET VAXIS 450
ON GRAPH SET HAXIS 1200
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D ON
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
-*SET APPLET SIZING=ON
ON GRAPH SET GRAPHSTYLE *
setDataTextDisplay (true);
setMarkerDisplay(true);
ENDSTYLE
END

This message has been edited. Last edited by: Kerry,
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
I don't think there's any automatic way to do this.

You can colour each bar individually. Here's an example:

GRAPH FILE CAR
SUM SALES
BY COUNTRY

ON GRAPH SET GRAPHSTYLE *
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));
setFillColor(getSeries(4),new Color(0,255,255));
setFillColor(getSeries(5),new Color(255,0,255));
setFillColor(getSeries(6),new Color(96,179,38));
setFillColor(getSeries(7),new Color(128,93,47));
setFillColor(getSeries(8),new Color(0,93,47));
setFillColor(getSeries(9),new Color(128,0,47));
ENDSTYLE
END
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Whatever Works...Thanks!
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
<VenuPalvai>
posted
Try
ON GRAPH SET GRAPHDEFAULT OFF

Refer to http://techsupport.informationbuilders.com/sps/33302511.html.
 
Report This Post
Virtuoso
posted Hide Post
Smart solution Venu....

but this question was posted in 2005, that time version 7.6 was not released.
Thanks anyway....




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     [SOLVED] Bar Graph Colors

Copyright © 1996-2020 Information Builders