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] Highcharts on a PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Highcharts on a PDF
 Login/Join
 
Gold member
posted
Hello,

Did anyone try to create Highcharts graph on a PDF output?


Thanks

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


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Virtuoso
posted Hide Post
Is that a chart type?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Is not Highcharts HTML?

You know PDF is not HTML?

Kofi


Client Server 8.1.05: Apache; Tomcat;Windows Server 2012
Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
 
Posts: 106 | Registered: April 06, 2009Report This Post
Gold member
posted Hide Post
I have created this in another framework (Zend) where I would create a html chart and then use the "wkhtmltopdf" tool in unix to generate a pdf output. I was wondering if this can be achieved in WebFocus.


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Virtuoso
posted Hide Post
So, are you doing this because of a specific requirement or just as a challenge to see if it can be done? If you have a specific chart type that doesn't exist in WebFOCUS or github, I could see why you'd want to know how to do something like this.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Gold member
posted Hide Post
quote:
Originally posted by BabakNYC:
So, are you doing this because of a specific requirement or just as a challenge to see if it can be done? If you have a specific chart type that doesn't exist in WebFOCUS or github, I could see why you'd want to know how to do something like this.


I have a requirement to create a Dashboard having multiple containers and I am using highcharts graph in one of those container. I know highcharts has an exporting module where I can easily download the same graph into a PDF, but my requirement is to be able to export the whole dashboard into a pdf file.
Yes! I had to create a chart which was not available in WebFOCUS.


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Expert
posted Hide Post
Nothing native in WebFOCUS although PhantomJS is installed with it. PhantomJS is a "headless" browser and you can capture webpages into an image file using it.

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
Virtuoso
posted Hide Post
We haven't done this server-side yet, but... Most (all?) of those JS charting libraries generate an SVG image embedded in the HTML output.

If you can run the JS chart server-side (for example using Tony's suggested PhantomJS or perhaps nodejs), capture the svg node + children and store that in a file. You can then embed that vector image in your PDF.

Ideally, you could create a HTML fragment (instead of a full page) consisting of just the generated SVG stuff for the chart and save that as a file.
We do this client-side using a popup window as the target document for the rendered chart, so that there is no left-over stuff (like the script-tags that include the chart library!).


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Member
posted Hide Post
WebFOCUS charting can be extended to make charts from external JavaScript charting libraries such as HighCharts behave like built-in WebFOCUS charts.

See the documentation:
---------------------
Creating HTML5 Charts With WebFOCUS Language Release 8.2 Version 04
Chapter 14: Adding Your Own Chart Types to the Chart Library
https://webfocusinfocenter.inf.../pdfs4/wfjschart.pdf

Note: This is also valid for earlier releases of WebFOCUS 82xx

This technique requires JavaScript programming skills.

Excerpts from the manual:

WebFOCUS supports the ability to add new, custom chart types to its list of built-in charts. These custom chart types are called extensions or plug-ins. An extension is a block of code that accesses resources external to WebFOCUS. This chapter describes the structure of an extension and the steps necessary to create your own and add it to the chart library.

Chart extensions are written in JavaScript. The visual part of a visualization can be drawn with HTML, Canvas, or SVG. Extensions can include external CSS and JS libraries (such as d3), which can be used to build almost any visualization. The WebFOCUS Extension API is limited to new, complete chart types only. It is not possible to add features to existing chart types, and it is not possible to modify or extend parts of WebFOCUS outside of the chart area allocated to your extension.
This chapter summarizes the process of writing, configuring, and installing a chart extension.

Detailed instructions can be found on the Information Builders GitHub site: https://github.com/ibi/wf-extensions-chart
 
Posts: 13 | Location: New York City | Registered: March 01, 2010Report This Post
Member
posted Hide Post
quote:
... but my requirement is to be able to export the whole dashboard into a pdf file.



In the PDF file containing the whole dashboard, is each container in the dashboard to appear on its own page in the PDF, or does the entire dashboard appear on a single page in the PDF like a screen shot?
 
Posts: 13 | Location: New York City | Registered: March 01, 2010Report This Post
Gold member
posted Hide Post
quote:
Originally posted by Ira Kaplan:


In the PDF file containing the whole dashboard, is each container in the dashboard to appear on its own page in the PDF, or does the entire dashboard appear on a single page in the PDF like a screen shot?


The entire dashboard need not be on a single page, but I need to try to fit in as many containers of a dashboard on a page to be visually appealing.


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report 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] Highcharts on a PDF

Copyright © 1996-2020 Information Builders