Tue Aug 16, 2022 4:46 pm
Login Register Lost Password? Contact Us

Please Note: The HPCC Systems forums are moving to Stack Overflow. We invite you to post your questions on Stack Overflow utilizing the tag hpcc-ecl (https://stackoverflow.com/search?tab=newest&q=hpcc-ecl). This legacy forum will be active and monitored during our transition to Stack Overflow but will become read only beginning September 1, 2022.

Export of graphs

Comments or questions specific to the features of ECL Watch

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


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.
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:
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”.


PS I have added a feature request for this at https://track.hpccsystems.com/browse/HPCC-8487
(4.57 KiB) Downloaded 733 times
Posts: 291
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.
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