Focal Point
[CLOSED] Converting External JS chart to Webfocus extension

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

November 07, 2017, 03:12 PM
srajeevan
[CLOSED] Converting External JS chart to Webfocus extension
Does anyone have experience converting external js chart to Webfocus format.
I am struggling to convert one as of right now.
Please let me know if anybody is willing to help.
Really important as the client wants that specific chart itself.

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


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
November 07, 2017, 03:24 PM
Waz
Well,

Step one:
Does WebFOCUS support that chart ?
What sort of chart is it ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 07, 2017, 03:41 PM
srajeevan
How will i decide whether WF support it.
As per my understanding all the d3.js chart in the d3js.og is supported by WF ,but needs to converted to WF chartformat.Please correct me if i am wrong

It is Corona chart from Vizuly Corona


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
November 07, 2017, 03:48 PM
Waz
Well there is some extra information.

I didn't think 8.1.05 supported D3.

Others on the forum may have more info.

You may also have to ask TechSupport as well.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 07, 2017, 03:52 PM
srajeevan
Okay.
I just wanted some solid explanation on how to convert d3.js charts into webfocus chart extension.
There is no proper tutorial docs as per my knowledge.

I will wait for others response.


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
November 07, 2017, 05:41 PM
FP Mod Chuck
srajeevan

Here are 2 links for installing and creating WF D3 Extensions

https://github.com/ibi/wf-exte...a-WebFocus-Extension

https://github.com/ibi/wf-exte...a-WebFocus-Extension


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
November 08, 2017, 03:36 AM
Tony A
If you are truly on WF 8.1.05 then wf-extensions are no good to you so you need to consider how you might approach this yourself. They only came in for WF 8.2.

There is a D3 chart named "Corona Radar" which takes you to your link (which is how you got your link I guess?).

Normally, you can view the source of a D3 chart and copy/paste into your own JS library and then hack itthe data declaration to accept your input from WF. This is how I've successfully utilised several D3 charts in WF 8.1.05.

The problem with this particular chart is that the code is not easy to harvest as I'm sure that they want you to purchase it!

If you can manage to use developer tools to obtain the JavaScript (which is a combination of jQuery and D3) then you might stand a chance of replicating it. If not then your client will be disappointed. You also have to consider commercial rights of course!

Requesting help on this forum to achieve this output is a big ask as it will be very time consuming.

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 
November 08, 2017, 03:44 AM
Tony A
quote:
As per my understanding all the d3.js chart in the d3js.og is supported by WF

Also, this statement is not entirely correct.

Several D3 charts (or, more correctly, charts using the D3 JavaScript framework) have been converted into wf_extensions. But these are not for releases prior to WF 8.2.

As always, you can include a JS framework within WebFOCUS and utilise it to manipulate WF output data. Therefore it follows that any D3js.org chart should be able to be harnessed within WF prior to WF 8.2 (providing your browser supports SVG & HTML5).

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