Export of graphs
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.
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
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
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 728 times
- gsmith
- Posts: 291
- Joined: Thu May 12, 2011 9:40 am
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.
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest