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.
Does anyone know how to change the colour of a line in a line graphs depending on the values? for example, make the line red when negative and black when positive... so one line can be either or both colours in the same graph? I know how to change the colour of a line of course but can't figure out how to get two colours.
Thanks.
JodyeThis message has been edited. Last edited by: Kerry,
You have to create a graph with two lines one for the positive values and one for the negative. If you do that, the first version will give you some strange lines whenever the value switches from plus to minus. The trick is to handle the null values (not zero!). This is documented in the manuals.
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, 2006
I opened a case and got a great solution. Here is a sample with CAR...works perfectly. How come nobody seems to know about this?
Jodye
GRAPH FILE car
SUM SALES
BY COUNTRY
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
DEFMACRO=COND0001, MACTYPE=RULE, WHEN=SALES LT 20000, $
DEFMACRO=COND0002, MACTYPE=RULE, WHEN=SALES GE 20000, $
TYPE=DATA, MACRO=COND0001, COLUMN=SALES, STYLE=BOLD, COLOR=LIME, $
TYPE=DATA, MACRO=COND0002, COLUMN=SALES, COLOR=RED, $
ENDSTYLE
END
It seems that in 7.1 code tried to produce the multi coloured line, but created different colours for each series, there is only one. In 7.6 it uses the ExceptionalRiser method. This method is normally used for bar graphs, ten point to IBI for finding this out.
If anyone is interested, here is a link to ThreedGrephics that details this method. ExceptionalRiser