Focal Point
[CLOSED]Heading or Footing issue with chart in HTML format

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

July 21, 2016, 11:43 AM
WebFocusDiver
[CLOSED]Heading or Footing issue with chart in HTML format
I create chart with Heading/Footing in HTML. The chart display fine. But because the chart has heading, it adds a scroll bar to the output. I know there is ON GRAPH SET EMBEDHEADING option to avoid the scroll bar. But the user wants to export the chart. So I add the link behind the Heading. Does anyone has similar experience? Is it possible to remove the scroll bar but also keep the heading at the same time?

Thank you

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.1.05
Windows, All Outputs
July 22, 2016, 08:09 AM
Mike in DeLand
I'm not sure if this will help you or not, but I've found that if you remove or comment the line that says

ON GRAPH SET GRWIDTH 1

the graph displays better.


Webfocus 8
Windows, Linux
July 22, 2016, 09:32 AM
WebFocusDiver
Mike,

Thanks. I don't have this line in my code.


WebFOCUS 8.1.05
Windows, All Outputs
July 25, 2016, 04:00 AM
Tony A
Use ON GRAPH SET EMBEDHEADING ON - link to documentation

This will embed the heading within the chart using the charting syntax rather than using the standard WebFOCUS HEADING syntax.

Keep the link given above to access WebFOCUS documentation - it will save you time!


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 
July 25, 2016, 09:29 AM
WebFocusDiver
Tony,

Thank you. I was trying to create a drill-down from the heading. With ON GRAPH SET EMBEDHEADING ON turns the heading to text. Is there any other solution that can add a text/image to the chart area that can drill-down from?


WebFOCUS 8.1.05
Windows, All Outputs
July 26, 2016, 03:32 AM
Tony A
There are pointers in the documentation if you look for them - link to documentation

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 
July 26, 2016, 10:40 AM
CuriousDev
Try using JSChart properties for title,subtitle and footnote.You can avoid scrolls in the page.It worked for me.


WebFOCUS 8
Windows, All Outputs
July 26, 2016, 11:49 AM
WebFocusDiver
Sorry I can't share the code so use the code from doc as example.

  GRAPH FILE WF_RETAIL_LITE
SUM COGS_US 
ACROSS PRODUCT_CATEGORY
FOOTING
"Export To PDF"
"Export To PPTX"
ON GRAPH SET EMBEDHEADING ON
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET STYLE *
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENFlat_ALM.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=FOOTING, LINE=1, JUSTIFY=LEFT, OBJECT=TEXT, TARGET='_blank',FOCEXEC=IBFS:/WFC/Repository/Investment_Analytics/Holdings/By_Security_Type/Portfolio_Holdings_PortfolioType_PDF.fex(....),$

*GRAPH_JS
title: {visible: true,  
text: '<u><em>Title is underlined and italic using HTML tags</em></u>'}    
*END
ENDSTYLE
END


So I want to add a drill-down link from footing. With "ON GRAPH SET EMBEDHEADING ON", it turn the footing to text inside the chart. But the drill-down option is not working. If I remove "ON GRAPH SET EMBEDHEADING ON" from the code, the drill-down works but the footing comes below the chart and make the chart has scroll bar.

Is there anyway that can make both the drill-down working and no scroll bar?

Sorry for the confusion.

Thank you for your help.


WebFOCUS 8.1.05
Windows, All Outputs