Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Change series Colors on Chart.
Go
New
Search
Notify
Tools
Reply
  
[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, 2007Reply With QuoteReport 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, 2019Reply With QuoteReport 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, 2007Reply With QuoteReport 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: 3134 | Location: Tennessee, Nashville area | Registered: February 23, 2005Reply With QuoteReport 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: 3134 | Location: Tennessee, Nashville area | Registered: February 23, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

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

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.