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] Setting Properties for One Series in a Bar-in-Bar Chart

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Setting Properties for One Series in a Bar-in-Bar Chart
 Login/Join
 
Platinum Member
posted
I have a vertical bar in bar chart that was created as a JSCHART format. I needed to created the same chart as a PDF format for a PDF compound layout procedure.

For the original JSCHART, I had this graph property below to control the data text label for one series to show in the inside middle of the bars on the chart while the other series show on top of the bar riser.

"series": [
{"series": 0, "dataLabels": {"visible": true, "position": "top"}},
{"series": 1, "dataLabels": {"visible": true, "position": "inside"}}]

However, this property is not working for the PDF bar-in-bar chart.

I also tried using a variation of the property below to also individual set the data text label for a series individually, but no success:

setSeriesDataTextDisplay;

Also, here is all the code below after the TABLE request that generates the graph and the styling and all.

Does anyone have similar experiences or have any suggestions?

  
ON GRAPH PCHOLD FORMAT PDF
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 VLINE
ON GRAPH SET AUTOFIT ON
ON GRAPH SET GRMULTIGRAPH 1
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setUseSeriesShapes(true);
setCurveFitEquationDisplay(false);

*END


INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, FONT='OPEN SANS', ORIENTATION=LANDSCAPE, $

-*TYPE=DATA, COLUMN=N2, FONT='OPEN SANS', SIZE=11, BUCKET=x-axis, $
-*TYPE=DATA, COLUMN=N3, FONT='OPEN SANS', SIZE=11, BUCKET=y-axis, $
-*TYPE=DATA, COLUMN=N4, FONT='OPEN SANS', SIZE=11, BUCKET=y-axis, $


*GRAPH_SCRIPT
-******************************
-*Added Code
-******************************
setFillColor(getY1MajorGrid(),new Color(153 194 77));
setFillColor(getSeries(0),new Color(153 194 77));
setDataTextDisplay(true);
-*setDataTextPosition(1);
setDataTextFormat(6);
setTextFormatPreset(getY1Label(), 6);
-*setTextFormatPreset(getDataText(), 6);
setFontStyle(getDataText(),0);
setLegendDisplay(true);
-*setX1LabelRotate(2);
setO1LabelRotate(3);
-*****************************


setReportParsingErrors(false);
setSelectionEnableMove(false);
setSeriesType(0,1);
setSeriesType(1,1);
setDisplay(getDataText(1), true);
setDataTextDisplay(true);
setColorMode(1);
-*setDataTextPosition(4);
-*DataTextRadiusDefault(80);
-*setSeriesDataTextDisplay(false);
setDisplay(getO1AxisLine(),false);
setDisplay(getO1Label(),true);
setLegendPosition(1);
setFillColor(getSeries(1),new Color(152,206,0));
setTransparentBorderColor(getSeries(1), true);
setFillColor(getSeries(0),new Color(76,76,76));
setTransparentBorderColor(getSeries(0), true);
setTextRotation(getO1Label(),3);
-*setTextFormatPreset(getY1Label(),8);
-*setTextFormatPreset(getDataText(),8);
setTextString(getO1Title(),"");
setDisplay(getO1Title(),false);
*GRAPH_JS_FINAL
"xaxis": {
    "title": {
        "visible": false
    }
},
"pieProperties": {
    "holeSize": "0%"
},
"blaProperties": {
    "seriesLayout": "absolute"
},
-*"agnosticSettings": {
-*    "chartTypeFullName": "Line_Absolute"
-*},
"dataLabels": {
       numberFormat: '$ #,#'
},

"yaxis":{
numberFormat:'${{auto}}'
},

"series": [
	{"series": 0, "dataLabels": {"visible": true, "position": "top"}},
	{"series": 1, "dataLabels": {"visible": true, "position": "inside"}}],

"htmlToolTip": {
    "enabled": true,
    "fill": "white",
               "autoContentFont": '9pt Open Sans',
               "style": {
                 "background": "white",
                 "font-color": "#4c4c4c",
                 "font-size": "9pt",
                 "font-family": "OpenSans",
      "boxShadow": "2px 2px 1px #004e87",
      "borderWidth": "2px",
                 "borderColor": "#004e87",
      "borderRadius": "5px"}
                }

*END
ENDSTYLE
END

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


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
 
Posts: 168 | Registered: August 22, 2019Report This Post
Expert
posted Hide Post
This can be done easily in InfoAssist...
Set all series to ColorOne, then select the one that you want to be different and set that to ColorTwo...

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
Platinum Member
posted Hide Post
Doug - Thanks for your reply. Where do I find "ColorOne" and "ColorTwo" in InfoAssist. I don't see those options anywhere under the Series tab.

Under the Series tab I have the following...Style, Data Labels, Type, Timeline, Equation, Smooth Line, Connect Lines, and Marker. I don't see ColorOne and ColorTwo under any of those options.


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
 
Posts: 168 | Registered: August 22, 2019Report 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] Setting Properties for One Series in a Bar-in-Bar Chart

Copyright © 1996-2020 Information Builders