Focal Point
[CLOSED] Increasing chart size

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

April 12, 2018, 11:43 AM
srajeevan
[CLOSED] Increasing chart size
Hi,

I have created a 3d Riser chart,but it appears small in size compared to the frame.
I searched the forum for information about increasing size of chart.
Saw info on HAXIS and VAXIS and apparenttly it doesn't work.
AUTOFIT ON also not working.

Any suggestions.?

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


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
April 12, 2018, 11:44 AM
BabakNYC
What's the output format of the chart? Can you provide an example using sample data so we can review?


WebFOCUS 8206, Unix, Windows
April 12, 2018, 11:58 AM
srajeevan
Output format is JS chart.

here is the sample code using wf_retail synonym.

  

-*IA_GRAPH_BEGIN
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 wf_retail
-* Created by Info Assist for Graph
SUM WF_RETAIL.WF_RETAIL_SALES.COGS_US
WF_RETAIL.WF_RETAIL_SALES.REVENUE_LOCAL
BY WF_RETAIL.WF_RETAIL_PRODUCT.PRODUCT_SUBCATEG
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 GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH 3D_BAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*GRAPH_JS_FINAL
"pieProperties": {
    "holeSize": "0%"
},
"agnosticSettings": {
    "chartTypeFullName": "ThreeD_Riser"
}
*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH




WF8206,Windows 7,8,10
HTM,PDF,EXCEL
April 12, 2018, 01:27 PM
BabakNYC
I'm stumped. You might want to reach out to IB tech support.


WebFOCUS 8206, Unix, Windows
April 12, 2018, 05:31 PM
CoolGuy
So, digging into the docs for this, I found the following method that gets rid of your unneeded legend (since your graph already labels what you're looking at) and at least centers your graph.

setLegendDisplay(false);

As for your sizing being small compared to the size of your viewport, AUTOFIT is working because your graph is recentering to the viewport as you resize it. I'm uncertain as to what properties or methods would help you scale your graph to fit better within the window it's in. Tried looking around, but didn't find anything myself. Don't work with graphs as much, or may be a bit more helpful. Sorry about that.

Hopefully someone chimes in at some point to help ya. I would think this would be a good thread for Tony A to help with, but he's been off busy with things or we would probably see him here.

Good luck!


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.