[CASE OPENED] Chart do not show colors when % values go less than 7
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 -RUNThis message has been edited. Last edited by: FP Mod Chuck,
webFOCUS 8206 Windows 10
October 26, 2017, 12:01 PM
Tony A
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
October 26, 2017, 06:32 PM
Siva1925
Thank you Tony. Have Raised a ticket.Will let you know if i find a solution.
webFOCUS 8206 Windows 10
October 30, 2017, 10:43 AM
BSBAL18
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