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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Change series Colors on Chart.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Change series Colors on Chart.
 Login/Join
 
Platinum Member
posted
We are using the Chord Chart HTML chart extension and not able to change the default colors on the chart. Here is the code we are using on car file.
Any suggestions?

 

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET ARGRAPHENGINE=JSCHART
SET EMBEDHEADING=ON
SET GRAPHDEFAULT=OFF
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.CAR.DEALER_COST
BY CAR.CAR.COUNTRY
BY CAR.CAR.CAR
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET LOOKGRAPH EXTENSION
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getSeries(0),new Color(#0A1C26));
setFillColor(getSeries(1),new Color(#13394D));
setFillColor(getSeries(2),new Color(#206080));
setFillColor(getSeries(4),new Color(#3399CC));
setFillColor(getSeries(3),new Color(#79CAF2));
setFillColor(getSeries(6),new Color(#A2D8F2));
setFillColor(getSeries(5),new Color(#C4ECFF));
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Flat.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=DATA, COLUMN=N1, BUCKET= >source, $
TYPE=DATA, COLUMN=N2, BUCKET= >target, $
TYPE=DATA, COLUMN=N3, BUCKET= >value, $
*GRAPH_JS_FINAL
"pieProperties": {
    "holeSize": "0%"
},
"chartType": "com.ibi.chord",
"agnosticSettings": {
    "chartTypeFullName": "com.ibi.chord"
}
*END
ENDSTYLE
END
-RUN


 

This message has been edited. Last edited by: FP Mod Chuck,


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Member
posted Hide Post
Hi getit,

Did you check the 'properties.json' file of the chord chart? , there you might find the option to change colors.
 
Posts: 3 | Registered: January 16, 2019Report This Post
Platinum Member
posted Hide Post
Yes I checked it. There is no option for changing series colors.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
Can you edit this in TEXT and change these as you see fit?
quote:
setFillColor(getSeries(0),new Color(#0A1C26));
setFillColor(getSeries(1),new Color(#13394D));
setFillColor(getSeries(2),new Color(#206080));
setFillColor(getSeries(4),new Color(#3399CC));
setFillColor(getSeries(3),new Color(#79CAF2));
setFillColor(getSeries(6),new Color(#A2D8F2));
setFillColor(getSeries(5),new Color(#C4ECFF));




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
By The way, You may get more answers from MyIBI.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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] Change series Colors on Chart.

Copyright © 1996-2020 Information Builders