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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Bar graph
 Login/Join
 
Gold member
posted
I have a horizontal bar graph that displays percentages for five different categories. I was able to change the colors of the actual bars appearing in the bar graph see stylesheet code pasted below. The code pasted below makes the color of the first bar a blue color and the remaining bars a gold color. Does anyone know if I can likewise make the percent value for the first bar a blue color and the percent value for the remaining bars a gold color? Thanks.


W.F version 7.1.7 Windows XP 5.1


DEFMACRO=COND0001,
MACTYPE=RULE,
COLOR='GOLD',
WHEN=N1 NE 1,
$
DEFMACRO=COND0002,
MACTYPE=RULE,
COLOR=RGB(27 138 181),
WHEN=N1 EQ 1,
$
TYPE=DATA,
COLUMN=N3,
MACRO=COND0002,
$
TYPE=DATA,
COLUMN=N3,
MACRO=COND0001,
$
 
Posts: 70 | Registered: April 04, 2007Report This Post
Expert
posted Hide Post
Hi Michele,

I checked with graph expert and was suggested that this may be possible to do. However, can you please provide a little more detail about your request? For example, what text exactly needs to be colored differently? Is it Ordinal Axis labels, Y Axis labels, or data labels?

Also, if you can provide an image, that would clarify it better. Thank you in advance for sharing with all. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Gold member
posted Hide Post
Kerry, I am creating an HBAR graph. Pasted below are the set commands that control the colors of the percentages that display alongside each bar for the 5 categories. I would like the first percentage to have the RGB color 27 138 181. I would like the remaining 4 percentages to have the RGB color 232 183 111. Thanks.


Data text color for the first percent

setFillColor(getDataText(),new Color(27 138 181));
setFillType(getColorByHeight(),2);

Data text color for percentages 2-4

setFillColor(getDataText(),new Color(232 183 111));
setFillType(getColorByHeight(),2);

Originally posted by kerry:
Hi Michele,

I checked with graph expert and was suggested that this may be possible to do. However, can you please provide a little more detail about your request? For example, what text exactly needs to be colored differently? Is it Ordinal Axis labels, Y Axis labels, or data labels?

Also, if you can provide an image, that would clarify it better. Thank you in advance for sharing with all. Smiler

Cheers,

Kerry[/QUOTE]
 
Posts: 70 | Registered: April 04, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders