Steve: I pasted your sample into WebGraphViz on my browser, then clicked Generate Graph!. The result was:
Warning: Not built with libexpat. Table formatting is not available in label of node a.
I don’t know if that image shows…I’m new around here and may have mucked this up…
At any rate, the upper bubble just said a : it didn’t have any of your formatting.
I did some more experimenting in another diagram, taking a box with a label and replacing the " . . ." with < . . . >, as specified in the html-label documentation. (There were no special characters inside the label.) Various things went wrong, but I don’t think it would be enlightening to describe them.
Finally, I inserted you “a” line of text into my own diagram. It just added an a with an elllipse aroud it to a spot in the diagram, and gave the same warning that you got.
I’ll be grateful for any suggestions about what the next step should be.
If WebGraphViz can’t produce HTML-like labels, and if a multi-color label is important to you, I suggest you install the Graphviz package on your computer or try one of the other interactive packages listed here: External Resources | Graphviz
Thanks… I had seen only viz.js, not the others listed. I actually tried installing one of the current Windows versions before falling back on WebGraphviz: but the installation gave peculiar results and I couldn’t get the program to run.
Since I haven’t found anybody who’s associated with WebGraphviz, I’ll probably have to try an alternative. Fingers crossed.
You can try the Grapviz Visual Editor which is based on @hpcc-js/wasm that Gordon mentioned and thanks to that supports HTML-like attributes.
You might still have the usual problems with web fonts. The link above does not look good with Firefox on my Ubuntu 21.04, but here’s an example without font specififcation that looks good.
Thanks for the link. The tool looks great: very slick editing of both text and graphs. I’ve pasted 5 test dot files into the tool in turn, and it automatically generated all their graphs correctly.
However, one of the test graphs was about 2/3 off of the drawing canvas (to the left); but when I backed up to the previous file and then re-advanced to the problem one, it presented properly. I mention that on the off chance that it’s related to the following problem:
When I paste my own dot file (177 lines) into the Graphviz Visual Editor, there is no visible change to the 34" display. even after an hour or more. The same dot file generates a graph in a second or two on WebGraphviz.
Have you any pointers on what I might be doing wrong?
I tried to send DOT code (with extension txt) but it bounced because of the invalid extension: the system wants jpg, jpeg, png, gif, svg
The message suggested I contact a staff member, and you were the first one listed. Should I just switch to one of the 5 even though it would be inaccurate or is there a better way?
Just to let you know I’m not ignoring your note (if it matters). Thanks for letting me know what worked for you. My concern is that even if I do get GraphViz running on my Windows system, I’ll lack the font/face information that the documentation indicates is required in order to take control over text appearance. So now that I have Graphviz Visual Editor and thus HTML–your tip on that was critical–Windows is some way down the todo list.