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     [CASE OPENED] Chart do not show colors when % values go less than 7

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE OPENED] Chart do not show colors when % values go less than 7
 Login/Join
 
Platinum Member
posted
Hi All,
I am new to webFOCUS.What i am trying to implement is that i have two fields (a) Goal (b) Actual.I am using a ring pie chart where Goal is my completer ring and Actual has to fill the pie based on the percentage values.
I was able to implement it but what happens is when the percentage values goes below 7% the actual fields color do not show up on the ring.
Is there any work around i can do to show up the color even when percentage goes below 7.

I am attaching sample car code with the same logic

DEFINE FILE CAR
HEIGHT2/D10.2 = 0.07 * .07;
HEIGHT1/D10.2 = 0.07 - HEIGHT2;
END
GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM
HEIGHT2 AS 'Actual'
HEIGHT1 AS 'PCT'
WHERE ( CAR.COMP.CAR EQ 'JAGUAR' ) AND ( CAR.ORIGIN.COUNTRY EQ 'ENGLAND' );

ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET GRMERGE ON
-*ON GRAPH SET HAXIS &WF_STYLE_WIDTH
-*ON GRAPH SET YAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET STYLE *
-*INCLUDE = IBFS:/WFC/Repository/Event_Intelligence/Hidden_Content/Style_Images/ENFlat.sty,
*GRAPH_JS
-*riserBevel of none makes the chart 2D delivering the flat look #808080
-*"riserBevel":"none",
-*The holeSize property of a % will maintain the pie radius proportion no matter what size your chart is. This is better than using a fixed number of pixels
pieProperties: {
holeSize: '60%',
totalLabel: {visible: true,
font: '10pt Helvetica',
color: '#6d6e71',
numberFormat: {mode: 'numeric',
thousandSep: ',',
decimalSep: '.',
decimalPlaces: 0,
grouping: '', // One of 'K', 'M', 'B', 'T'
suffix: '%', // added to the end of the label
}
}
},
-*series: [
-* {series: 0, color: '&KPI_COLOR_ACT',showDataValues: false},
-* {series: 1, color: '&KPI_COLOR_GOAL',showDataValues: false}
-*]
*END
TYPE=REPORT, TITLETEXT=Daily Summary KPI, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='Trebuchet MS', SIZE=18, COLOR=RGB(66 70 73), STYLE=BOLD, $
ENDSTYLE
ON GRAPH SET GRAPHSTYLE *
*GRAPH_SCRIPT
setPlace(true);
setColorMode(1);
setDepthRadius(0);
setDepthAngle(0);
setToolTipDisplay(false);
setReportParsingErrors(false);
setSelectionEnableMove(true);
setTransparentBorderColor(getChartBackground(),true);
setTransparentBorderColor(getSeries(*), true);
setTransparentBorderColor(getFrame(),true);
setDisplay(getDataText(),false);
setPlaceResize(getDataText(),0);
setTransparentBorderColor(getSeries(0),true);
setFontStyle(getTitle(),0);
setDisplay(getLegendArea(),false);
setScaleFromZero(false);
setFillColor(getFrame(),new Color(255,255,255));
*END
END
-RUN

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


webFOCUS 8206
Windows 10
 
Posts: 181 | Registered: October 25, 2017Report This Post
Expert
posted Hide Post
This would appear to be a problem that would need support to look at it.

Using developer tools, I can see that the segment is created but the co-ordinates for the SVG path seem to be mis-calculated (imho anyway).

Raise a case on Info Response, is my recommendation.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Thank you Tony.
Have Raised a ticket.Will let you know if i find a solution.


webFOCUS 8206
Windows 10
 
Posts: 181 | Registered: October 25, 2017Report This Post
Gold member
posted Hide Post
My chart also does this. I used a horizontal bar chart and the tiny %ages dont show up at all.


AS Version: 8201
Gen: 10202016
Windows, All Outputs
 
Posts: 49 | Location: St. Louis | Registered: December 13, 2016Report 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     [CASE OPENED] Chart do not show colors when % values go less than 7

Copyright © 1996-2020 Information Builders