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     7.6 pie chart colors

Read-Only Read-Only Topic
Go
Search
Notify
Tools
7.6 pie chart colors
 Login/Join
 
Platinum Member
posted
I have converted to 7.6 from 7.1.4 and my pie chart colors don't work Any one have any ideas?
Thank you in advance.

Here is the code:

-GRAPHCOLORS
-SET &COLOR1='(125, 33,112)';
-SET &RGB1=EDIT(&COLOR1,'9999 $999 $9999');
-SET &COLOR2='( 66,130, 64)';
-SET &RGB2=EDIT(&COLOR2,'9999 $999 $9999');
-SET &COLOR3='( 0, 84,135)';
-SET &RGB3=EDIT(&COLOR3,'9999 $999 $9999');
-SET &COLOR4='(204,102, 0)';
-SET &RGB4=EDIT(&COLOR4,'9999 $999 $9999');
-SET &COLOR5='(204, 0, 0)';
-SET &RGB5=EDIT(&COLOR5,'9999 $999 $9999');
-SET &COLOR6='(255,209, 15)';
-SET &RGB6=EDIT(&COLOR6,'9999 $999 $9999');
-*
-INCLUDE app/bbbidt02.fex
-RUN
-*
-* Step 2 - Retrieve data and generate pie chart.
-*
DEFINE FILE SUMBBBQT
SLS/D12.2 = SLS_NET1 + FPERIODSLS;
END
GRAPH FILE SUMBBBQT
" End Market Sales"
SUM SLS AS ' ' ENDMKTCLS NOPRINT
ACROSS ENDMKTCLS
WHERE YEARQTR EQ '&CURRQTR';
WHERE PRODGRP EQ &PRODGRP;
WHERE PRODLINE EQ &PRODLINE;
WHERE GEOGRAPHY EQ &GEOGRAPHY;
WHERE AREA EQ &AREA;
WHERE ENDMKTCLS NE ' ';
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRID OFF
ON GRAPH SET VAXIS 180
ON GRAPH SET HAXIS 250
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(2);
setPieLabelDisplay(1);
setTextFormatPreset(getPieSliceLabel(),2);
setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSize(getPieSliceLabel(),10);
setFontStyle(getPieLabel(),2);
setFontSizeAbsolute(getPieLabel(),true);
setFontSize(getPieLabel(),10);
setLegendAutomatic(false);
setPlace(false);
setLegendDisplay(true);
-*setRect(getPieFrame(), new Rectangle(-5000,-15000,25000,30000));
setRect(getPieFrame(), new Rectangle(-5000,-11000,25000,30000));
setRect(getLegendArea(),new Rectangle(-5000,-3000,32000,15000));
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getLegendText(),10);
setLegendPosition(5);
setSeriesFillColor(0, new Color&COLOR5);
setSeriesFillColor(1, new Color&COLOR6);
setSeriesFillColor(2, new Color&COLOR3);
setSeriesFillColor(3, new Color&COLOR2);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.00000,
BOTTOMMARGIN=0.00000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='Verdana',
SIZE=9,
BACKCOLOR='NONE',
STYLE=BOLD,
$
-*TYPE=DATA,ACROSSCOLUMN=N1,
-*FOCEXEC=app/bobGRAP2(\
-*PRODGRP=ENDMKTCLS
-*p2=),
-*$
TYPE=DATA,
ACROSSCOLUMN=N1,
COLOR=RGB(51 102 255),
$
TYPE=DATA,
ACROSSCOLUMN=N2,
COLOR=RGB(153 204 0),
$
TYPE=DATA,
ACROSSCOLUMN=N3,
COLOR='RED',
$
TYPE=DATA,
ACROSSCOLUMN=N4,
COLOR='FUCHSIA',
$
TYPE=HEADING,
LINE=10,
OBJECT=TEXT,
ITEM=1,
FONT='Verdana',
SIZE=9,
COLOR='BLACK',
$ STYLE=BOLD,
$
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report This Post
Virtuoso
posted Hide Post
Try changing your setSeriesFillColor statements.

Change FROM:

setSeriesFillColor(0, new Color(&COLOR5);
setSeriesFillColor(1, new Color(&COLOR6);
setSeriesFillColor(2, new Color(&COLOR3);
setSeriesFillColor(3, new Color(&COLOR2);

TO:

setFillColor(getSeries(0),new Color(&COLOR5));
setFillColor(getSeries(1),new Color(&COLOR6));
setFillColor(getSeries(2),new Color(&COLOR3));
setFillColor(getSeries(3),new Color(&COLOR2));


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
It also looks like you are missing paranthesis () around the &COLOR portion of your statements. I assume they did not appear in the post but you do have them in your code, correct?


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Thanks for the suggestion. I tried your code and it produces a blank screen , no error message.
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by secret:
Thanks for the suggestion. I tried your code and it produces a blank screen , no error message. I fixed the problem. The problem was the code ( I inherited had the color set in the style sheet and the API. this worked in 7.1 but not in 7.6.
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report 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     7.6 pie chart colors

Copyright © 1996-2020 Information Builders