Difference between revisions of "User:DavidWhitten"
DavidWhitten (talk | contribs) (initial page) |
DavidWhitten (talk | contribs) |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
David Whitten is the Chief Technology Officer of WorldVistA (http://www.worldvista.org) a U.S. 501(c)(3) nonprofit dedicated to affordable healthcare computing worldwide. | David Whitten is the Chief Technology Officer of WorldVistA (http://www.worldvista.org) a U.S. 501(c)(3) nonprofit dedicated to affordable healthcare computing worldwide. | ||
+ | |||
+ | Yea! I just got Wgraph working on a private wiki. | ||
+ | As I understand it, it only generates svg and png files. | ||
+ | I wonder what would be necessary to generate image maps ? | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Image maps might be somewhat complicated. But there is a good alternative: '''use the 'href' attribute for nodes.''' | ||
+ | |||
+ | BTW: It is not really simple to install Wgraph. Did you have problems? Are you using Windows or Unix? Do you see the need for improving the installation description? | ||
+ | :[[User:Gero|Gero]] 08:36, 23 February 2008 (CET) | ||
+ | ---- | ||
+ | You are correct that it wasn't simple to install. I have written some [[User:DavidWhitten/Wgraph_Install_Notes|notes]] of my experiences. | ||
+ | |||
+ | My experiment with wgraph and href yielded: | ||
+ | <nowiki> | ||
+ | <pre> | ||
+ | {{#wgraph: svg | thumb = 40 | | ||
+ | node wgl { type data label "text notation\n-- WGL --" href "http://www.google.com" } | ||
+ | }} | ||
+ | </pre> | ||
+ | </nowiki> | ||
+ | which generates: | ||
+ | {{#wgraph: svg | thumb = 40 | | ||
+ | node wgl { type data label "text notation\n-- WGL --" href "http://www.google.com" } | ||
+ | node whitespace99 {label "\n" level 99 color white} | ||
+ | |||
+ | }} | ||
+ | |||
+ | I note that I can't click on the node directly, but rather have to click on the image, then I can get to the svg file and then I can click on the node to go to google. Also the banner stating that it was generated by aiSee in the svg file is on top of the rest of the graph. Is there any way to have that banner be a part of the graph, but not taking over? | ||
+ | |||
+ | :Sometimes it helps to place a small (white) node with no text into the right lower corner of your graph (using the 'level' parameter. Thus the aiSee logo gets out of way... ([[User:Gero|Gero]] 22:58, 25 February 2008 (CET)) | ||
+ | |||
+ | ---- | ||
+ | I have run into an error (using the local windows aiSee) with this [[User:DavidWhitten/Anchor_Error_1| graph]]. | ||
+ | Aparently, the anchor can only be from 1..255 in value. You get an error here on this wiki, but I didn't get one on my wiki, I don't know why. The error here was !! #Wgraph: invalid filename, only a-zA-Z0-9 and "-,_" are allowed. !! | ||
+ | but of course, it really isn't that error at all. I got this [[User:DavidWhitten/Anchor_Error_1_Log|error log]] in images/Wgraph/Test1.log. Just so you know... | ||
+ | :Wgraph takes the article name as a file name for the gdl file. If your article is a subpage the name will contain a "/" which confuses the operating system. Therefore Wgraph is very restrictive with file names. To avoid the error you only need to set the file name explicitly by 'name=foo123' (where 'foo123' should be unique in your wiki). | ||
+ | :[[User:Gero|Gero]] 18:45, 26 February 2008 (CET) | ||
+ | :As to the anchor problem: anchor must be >= 1; Using anchor values bigger than the number of lines in your node will cause your line to end somewhere in the open field. I changed your example a little to show the effect. | ||
+ | :[[User:Gero|Gero]] 19:03, 26 February 2008 (CET) | ||
+ | ---- | ||
+ | I have started to read the Wgraph.php to learn how it works. |
Latest revision as of 20:57, 29 February 2008
David Whitten is the Chief Technology Officer of WorldVistA (http://www.worldvista.org) a U.S. 501(c)(3) nonprofit dedicated to affordable healthcare computing worldwide.
Yea! I just got Wgraph working on a private wiki. As I understand it, it only generates svg and png files. I wonder what would be necessary to generate image maps ?
Image maps might be somewhat complicated. But there is a good alternative: use the 'href' attribute for nodes.
BTW: It is not really simple to install Wgraph. Did you have problems? Are you using Windows or Unix? Do you see the need for improving the installation description?
- Gero 08:36, 23 February 2008 (CET)
You are correct that it wasn't simple to install. I have written some notes of my experiences.
My experiment with wgraph and href yielded: <pre> {{#wgraph: svg | thumb = 40 | node wgl { type data label "text notation\n-- WGL --" href "http://www.google.com" } }} </pre> which generates: {{#wgraph: svg | thumb = 40 |
node wgl { type data label "text notation\n-- WGL --" href "http://www.google.com" } node whitespace99 {label "\n" level 99 color white}
}}
I note that I can't click on the node directly, but rather have to click on the image, then I can get to the svg file and then I can click on the node to go to google. Also the banner stating that it was generated by aiSee in the svg file is on top of the rest of the graph. Is there any way to have that banner be a part of the graph, but not taking over?
- Sometimes it helps to place a small (white) node with no text into the right lower corner of your graph (using the 'level' parameter. Thus the aiSee logo gets out of way... (Gero 22:58, 25 February 2008 (CET))
I have run into an error (using the local windows aiSee) with this graph. Aparently, the anchor can only be from 1..255 in value. You get an error here on this wiki, but I didn't get one on my wiki, I don't know why. The error here was !! #Wgraph: invalid filename, only a-zA-Z0-9 and "-,_" are allowed. !! but of course, it really isn't that error at all. I got this error log in images/Wgraph/Test1.log. Just so you know...
- Wgraph takes the article name as a file name for the gdl file. If your article is a subpage the name will contain a "/" which confuses the operating system. Therefore Wgraph is very restrictive with file names. To avoid the error you only need to set the file name explicitly by 'name=foo123' (where 'foo123' should be unique in your wiki).
- Gero 18:45, 26 February 2008 (CET)
- As to the anchor problem: anchor must be >= 1; Using anchor values bigger than the number of lines in your node will cause your line to end somewhere in the open field. I changed your example a little to show the effect.
- Gero 19:03, 26 February 2008 (CET)
I have started to read the Wgraph.php to learn how it works.