Mon Nov 29, 2021 9:33 pm
Login Register Lost Password? Contact Us


Export of graphs

Comments or questions specific to the features of ECL Watch

Mon Dec 17, 2012 10:28 pm Change Time Zone

Hello,

Is there a way to export the graphs of WU in graphical formats such as SVG ? They are indeed very suitable for illustrating technical documentation of WU code.

Thanks, Thierry.
tdelbecque
 
Posts: 44
Joined: Thu Sep 06, 2012 10:43 am

Tue Dec 18, 2012 3:26 pm Change Time Zone

Short answer: No.
Longer answer: Maybe...
As you (probably) know the graph view in ECL Watch is displayed using a plugin/ActiveX (source code available at https://github.com/hpcc-systems/GraphControl).

This control is fed XGMML from the server, performs the layout and then displays the graph.

To see its API have a look at: https://github.com/hpcc-systems/GraphCo ... ntrolAPI.h

There you will see a "GetSVG" method!

---the following hack is based on the 3.8.6 release---
I have attached a modified version of the ECL Playground. It adds a new button “Get SVG” which will fetch the SVG for the displayed graph and put it in the ECL Editor. To make it work just extract the contents of the zip file into:
/opt/HPCCSystems/componentfiles/files
There is no need to restart the server, but you will need to refresh your ECL Watch Page.
Next, just open the ECL Playground view for your WU of choice and press “Get SVG”.

Gordon.

PS I have added a feature request for this at https://track.hpccsystems.com/browse/HPCC-8487
Attachments
ECLPlayground.zip
(4.57 KiB) Downloaded 700 times
gsmith
 
Posts: 290
Joined: Thu May 12, 2011 9:40 am

Tue Dec 18, 2012 4:30 pm Change Time Zone

Thanks a lot for that.

I am not the administrator of the cluster on which I work, so I cannot install this addon myself, but I will look at the javascript in it and at the activeX code also to see what I can do client side.

best regards, Thierry.
tdelbecque
 
Posts: 44
Joined: Thu Sep 06, 2012 10:43 am


Return to ECL Watch

Who is online

Users browsing this forum: No registered users and 1 guest