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     CLOSED Pie chart colors do not match the legend

Read-Only Read-Only Topic
Go
Search
Notify
Tools
CLOSED Pie chart colors do not match the legend
 Login/Join
 
Gold member
posted
I'm using the following code to match the colors in multiple graphs as they are drilled.
It's working fine everywhere except in my pie charts where the colors in the legend are the correct colors but no longer match the chart.
(ONLY happens in PNG)

DEFMACRO=COND0001,MACTYPE=RULE,WHEN=NEWMAN EQ '&MAN1',$
DEFMACRO=COND0002,MACTYPE=RULE,WHEN=NEWMAN EQ '&MAN2',$
DEFMACRO=COND0003,MACTYPE=RULE,WHEN=NEWMAN EQ '&MAN3',$
DEFMACRO=COND0004,MACTYPE=RULE,WHEN=NEWMAN EQ '&MAN4',$
DEFMACRO=COND0005,MACTYPE=RULE,WHEN=NEWMAN EQ '&MAN5',$
TYPE=DATA,COLOR=RGB(166 123 60),MACRO=COND0001,$
TYPE=DATA,COLOR=RGB(166 165 60),MACRO=COND0002,$
TYPE=DATA,COLOR=RGB(57 146 53),MACRO=COND0003,$
TYPE=DATA,COLOR=RGB(165 60 62),MACRO=COND0004,$
TYPE=DATA,COLOR=RGB(53 93 145),MACRO=COND0005,$

This message has been edited. Last edited by: J.L. Hinds,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 74 | Registered: December 23, 2013Report This Post
<nick z>
posted
Hi,
Can you please post your full code using CAR file?
What version of WF are you on?

Here is my example using CAR that worked for me in 8009:

GRAPH FILE CAR
SUM DEALER_COST
BY COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
setPieFeelerTextDisplay(1); 

*END
DEFMACRO=COND0001, MACTYPE=RULE, WHEN=COUNTRY EQ 'ENGLAND', $
DEFMACRO=COND0002, MACTYPE=RULE, WHEN=COUNTRY EQ 'FRANCE', $
DEFMACRO=COND0003, MACTYPE=RULE, WHEN=COUNTRY EQ 'ITALY', $
DEFMACRO=COND0004, MACTYPE=RULE, WHEN=COUNTRY EQ 'JAPAN', $
DEFMACRO=COND0005, MACTYPE=RULE, WHEN=COUNTRY EQ 'W GERMANY', $
TYPE=DATA,COLOR=RGB(166 123 60),MACRO=COND0001,$
TYPE=DATA,COLOR=RGB(166 165 60),MACRO=COND0002,$
TYPE=DATA,COLOR=RGB(57 146 53),MACRO=COND0003,$
TYPE=DATA,COLOR=RGB(165 60 62),MACRO=COND0004,$
TYPE=DATA,COLOR=RGB(53 93 145),MACRO=COND0005,$
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);

*END
ENDSTYLE
END

-RUN

 
Report This Post
Gold member
posted Hide Post
Nick
That does work which inspired me to dig deeper. I changed my style sheet and it works fine now. Problem is the style sheet I need to use has all the defined colors for our customer. Any idea what could be causing the legend to pull different colors?
Appreciate the advice, I was stumped.
Jeff


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 74 | Registered: December 23, 2013Report This Post
<nick z>
posted
Hi Jeff,
I am not sure why the stylesheet would cause this issue. I would suggest to open a case with CSS.

Thanks.
Nick.
 
Report 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     CLOSED Pie chart colors do not match the legend

Copyright © 1996-2020 Information Builders