Focal Point
[CLOSED] Change series Colors on Chart.

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1627025496

October 02, 2020, 09:57 AM
getit
[CLOSED] Change series Colors on Chart.
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
October 02, 2020, 10:52 AM
Bajr
Hi getit,

Did you check the 'properties.json' file of the chord chart? , there you might find the option to change colors.
October 02, 2020, 03:37 PM
getit
Yes I checked it. There is no option for changing series colors.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
October 02, 2020, 05:44 PM
Doug
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
October 02, 2020, 05:58 PM
Doug
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